Table of Contents

Class WebGPUBackdropDropShadowLayerEffect

Namespace
SixLabors.ImageSharp.Drawing.Processing.Backends
Assembly
SixLabors.ImageSharp.Drawing.WebGPU.dll

Provides a shader-accelerated counterpart to BackdropDropShadowLayerEffect.

public sealed class WebGPUBackdropDropShadowLayerEffect : WebGPUBackdropShaderLayerEffect, IWebGPUShaderEffect
Inheritance
WebGPUBackdropDropShadowLayerEffect
Implements
Inherited Members

Remarks

This effect can be used with both WebGPU and CPU drawing backends. WebGPU creates the backdrop shadow with shader passes; a CPU backend applies the equivalent BackdropDropShadowLayerEffect.

Constructors

WebGPUBackdropDropShadowLayerEffect(Point, float, Color)

Initializes a new instance of the WebGPUBackdropDropShadowLayerEffect class.

public WebGPUBackdropDropShadowLayerEffect(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.

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