Skip to content

DropShadowFilter constructor

Draws a blurred, colored copy of the input offset by (Dx, Dy) DIPs behind it, or the shadow alone when Mode says so.

public DropShadowFilter(double dx, double dy, double radius, Color color,
DropShadowMode mode = DropShadowMode.DrawShadowAndForeground, ImageFilter? input = null)

Equivalent to Merge(Source, Composite(Flood(Color), Offset(dx, dy, Blur(σ, SourceAlpha)))), but backends may implement it as a single fused shader. Maps to SVG drop-shadow filter idioms.