SceneDropShadowPrimitive Class

A primitive that draws its input over its shadow: feDropShadow of SVG.

public sealed class SceneDropShadowPrimitive : SceneFilterPrimitive
Inheritance
SceneFilterPrimitive SceneDropShadowPrimitive

Constructors

NameDescription
SceneDropShadowPrimitive(double, double, double, double, SceneColor)Initializes a new instance of the SceneDropShadowPrimitive class.

SceneDropShadowPrimitive(double, double, double, double, SceneColor)

SceneDropShadowPrimitive.cs

Initializes a new instance of the SceneDropShadowPrimitive class.

public SceneDropShadowPrimitive(double offsetX, double offsetY, double standardDeviationX, double standardDeviationY, SceneColor color)

Parameters

offsetX double
The offset of the shadow along x: dx.
offsetY double
The offset of the shadow along y: dy.
standardDeviationX double
The standard deviation of the blur of the shadow along x: stdDeviation.
standardDeviationY double
The standard deviation of the blur of the shadow along y.
color SceneColor
The color of the shadow: flood-color and flood-opacity.

Exceptions

ArgumentException
An offset or a standard deviation is not a finite number.
ArgumentOutOfRangeException
A standard deviation is negative.

Properties

NameDescription
ColorGets the color of the shadow.
InputGets the input: in.
OffsetXGets the offset of the shadow along x.
OffsetYGets the offset of the shadow along y.
StandardDeviationXGets the standard deviation of the blur of the shadow along x.
StandardDeviationYGets the standard deviation of the blur of the shadow along y.

Gets the color of the shadow.

public SceneColor Color { get; }

Property value

SceneColor

Gets the input: in.

public SceneFilterInput Input { get; init; }

Property value

SceneFilterInput

Gets the offset of the shadow along x.

public double OffsetX { get; }

Property value

double

Gets the offset of the shadow along y.

public double OffsetY { get; }

Property value

double

StandardDeviationX

SceneDropShadowPrimitive.cs

Gets the standard deviation of the blur of the shadow along x.

public double StandardDeviationX { get; }

Property value

double

StandardDeviationY

SceneDropShadowPrimitive.cs

Gets the standard deviation of the blur of the shadow along y.

public double StandardDeviationY { get; }

Property value

double