Table of Contents

Class WebGPUBackdropAcrylicLayerEffect

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

Provides a shader-accelerated counterpart to BackdropAcrylicLayerEffect.

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

Remarks

This effect can be used with both WebGPU and CPU drawing backends. WebGPU blurs and tints the backdrop with shader passes; a CPU backend applies the equivalent BackdropAcrylicLayerEffect.

Constructors

WebGPUBackdropAcrylicLayerEffect(float, Color)

Initializes a new instance of the WebGPUBackdropAcrylicLayerEffect class.

public WebGPUBackdropAcrylicLayerEffect(float sigma, Color tint)

Parameters

sigma float

The Gaussian blur sigma, in pixels.

tint Color

The tint blended over the blurred backdrop.

Properties

Sigma

Gets the Gaussian blur sigma, in pixels.

public float Sigma { get; }

Property Value

float

Tint

Gets the tint blended over the blurred backdrop.

public Color Tint { get; }

Property Value

Color