Class ShadowEffect2.Props
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Framework.dll
public sealed class ShadowEffect2.Props : CustomEffectProperties
- Inheritance
-
ShadowEffect2.Props
- Inherited Members
Constructors
Properties
- AlphaMode
Specifies the alpha mode for the output. Because this effect operates only on the input's alpha channel, it does not matter if the input is in straight or premultiplied alpha format.
The default value is Premultiplied.
- 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. You can compute the standard deviation by dividing the blur radius by 3. The units of both the standard deviation and blur radius are DIPs. A value of zero disables this effect entirely.
You can use the StandardDeviation class to simplify conversion between standard deviation and radius.
The range of this value is [0, 100], which corresponds to a blur radius of [0, 300].
The default value is 3.
- 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).
- Optimization
The level of performance optimization. The default value is ShadowOptimization2.HighQuality.