Table of Contents

Class ShadowEffect.Props

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll
public sealed class ShadowEffect.Props : DeviceEffectProperties
Inheritance
ShadowEffect.Props
Inherited Members

Constructors

Props()

Properties

BlurStandardDeviation

The amount of blur to be applied to the alpha channel of the image. You can compute the blur radius of the kernel by multiplying the standard deviation by 3. The units of both the standard deviation and blur radius are DIPs.
This property is the same as the Gaussian Blur standard deviation property.
The range of this value is [0, 250], which corresponds to a blur radius of [0, 750].
The default value is 3.

ClassID

Implemented by the derived class to specify the effect's class ID (CLSID) when registering and creating the effect and for binding to an IDeviceEffectProperties.
Note that this is different than the ID property accessor, which queries the IDeviceEffectProperties for the actual runtime effect class ID.
Overriding this property is only necessary in advanced scenarios, such as when wrapping an existing effect (e.g. built-in Direct2D effects), or when working with CustomEffects that have their own generic type arguments (e.g. PixelShaderEffect).

Color

The color of the drop shadow. You must specify this color in straight alpha (not premultiplied).
The default value is { 0, 0, 0, 1 } (opaque black).

Input
Optimization

The level of performance optimization. The default value is ShadowOptimization.Quality.