DropShadowPrimitive Class
A primitive that draws its input over its shadow: feDropShadow of SVG.
public sealed class DropShadowPrimitive : FilterPrimitiveRemarks
The shadow is the one of DropShadowFilter, with a standard deviation per axis: the alpha of the input, moved by DropShadowPrimitive.Offset, blurred (transparent beyond the subregion of the input), painted with DropShadowPrimitive.Color in the colors of the primitive; the input is drawn over it.
- Inheritance
FilterPrimitiveDropShadowPrimitive
Constructors
| Name | Description |
|---|---|
| DropShadowPrimitive(Rgba64, PointD, double, double) | Initializes a new instance of the DropShadowPrimitive class. |
DropShadowPrimitive(Rgba64, PointD, double, double)
DropShadowPrimitive.csInitializes a new instance of the DropShadowPrimitive class.
Parameters
colorRgba64- The color of the shadow, with straight alpha:
flood-colorandflood-opacity. AnRgba32converts implicitly. offsetPointD- The distance from the input to its shadow, in units of the drawing:
dxanddy. sigmaXdouble- The standard deviation of the blur along x, in units of the drawing. Must be between 0 and 10000.
sigmaYdouble- The standard deviation of the blur along y, in units of the drawing. Must be between 0 and 10000.
Exceptions
ArgumentException- A coordinate of
offset, or a standard deviation, is not a finite number. ArgumentOutOfRangeException- The magnitude of a coordinate of
offsetexceeds 16777216, or a standard deviation is negative or exceeds 10000.
Properties
| Name | Description |
|---|---|
| Color | Gets the color of the shadow. |
| Input | Gets the input: in. |
| Offset | Gets the distance from the input to its shadow. |
| SigmaX | Gets the standard deviation of the blur along x. |
| SigmaY | Gets the standard deviation of the blur along y. |