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