Table of Contents

Class WebGPUGaussianBlurLayerEffect

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

Provides a shader-accelerated counterpart to BlurLayerEffect.

public sealed class WebGPUGaussianBlurLayerEffect : WebGPUShaderLayerEffect, IWebGPUShaderEffect
Inheritance
WebGPUGaussianBlurLayerEffect
Implements
Inherited Members

Remarks

This effect can be used with both WebGPU and CPU drawing backends. WebGPU performs the Gaussian blur with separable shader passes; a CPU backend applies the equivalent BlurLayerEffect.

Constructors

WebGPUGaussianBlurLayerEffect(float)

Initializes a new instance of the WebGPUGaussianBlurLayerEffect class.

public WebGPUGaussianBlurLayerEffect(float sigma)

Parameters

sigma float

The Gaussian blur sigma, in pixels; zero leaves the content unchanged.

Exceptions

ArgumentOutOfRangeException

Thrown when sigma is negative.

Properties

Sigma

Gets the Gaussian blur sigma, in pixels.

public float Sigma { get; }

Property Value

float