Class WebGPUGlowLayerEffect
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Provides a shader-accelerated counterpart to GlowLayerEffect.
public sealed class WebGPUGlowLayerEffect : WebGPUShaderLayerEffect, IWebGPUShaderEffect
- Inheritance
-
WebGPUGlowLayerEffect
- Implements
- Inherited Members
Remarks
This effect can be used with both WebGPU and CPU drawing backends. WebGPU creates the glow with shader passes; a CPU backend applies the equivalent GlowLayerEffect.
Constructors
WebGPUGlowLayerEffect(float, Color)
Initializes a new instance of the WebGPUGlowLayerEffect class.
public WebGPUGlowLayerEffect(float sigma, Color color)
Parameters
Properties
Color
Gets the glow colour.
public Color Color { get; }
Property Value
Sigma
Gets the Gaussian blur sigma, in pixels.
public float Sigma { get; }