Table of Contents

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

offset Point

The shadow offset, in pixels.

sigma float

The Gaussian blur sigma, in pixels; zero draws a hard shadow.

color Color

The shadow colour. Its alpha scales the backdrop's alpha.

Properties

Color

Gets the shadow colour.

public Color Color { get; }

Property Value

Color

Offset

Gets the shadow offset, in pixels.

public Point Offset { get; }

Property Value

Point

Sigma

Gets the Gaussian blur sigma, in pixels.

public float Sigma { get; }

Property Value

float

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

Point

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; }

Property Value

GraphicsOptions