Class BackdropDropShadowLayerEffect
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Composites a drop shadow of the backdrop's silhouette beneath it. The CSS equivalent is
backdrop-filter: drop-shadow().
public sealed class BackdropDropShadowLayerEffect : BackdropLayerEffect
- Inheritance
-
BackdropDropShadowLayerEffect
- Inherited Members
Constructors
BackdropDropShadowLayerEffect(Point, float, Color)
Initializes a new instance of the BackdropDropShadowLayerEffect class.
public BackdropDropShadowLayerEffect(Point offset, float sigma, Color color)
Parameters
offsetPointThe shadow offset, in pixels.
sigmafloatThe Gaussian blur sigma, in pixels; zero draws a hard shadow.
colorColorThe shadow colour. Its alpha scales the backdrop's alpha.
Properties
Color
Gets the shadow colour.
public Color Color { get; }
Property Value
Offset
Gets the shadow offset, in pixels.
public Point Offset { get; }
Property Value
Sigma
Gets the Gaussian blur sigma, in pixels.
public float Sigma { get; }
Property Value
WriteBackOffset
Gets the offset, in pixels, at which the processed pixels are written back relative to the region they were read from.
public override Point WriteBackOffset { get; }
Property Value
WriteBackOptions
Gets the graphics options used to composite the processed pixels back onto the layer, or null to replace the processed region outright.
public override GraphicsOptions? WriteBackOptions { get; }