Table of Contents

Class WebGPUColorMatrixLayerEffect

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

Provides a shader-accelerated counterpart to ColorMatrixLayerEffect.

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

Remarks

This effect can be used with both WebGPU and CPU drawing backends. WebGPU transforms the layer with a shader; a CPU backend applies the equivalent ColorMatrixLayerEffect.

Constructors

WebGPUColorMatrixLayerEffect(ColorMatrix)

Initializes a new instance of the WebGPUColorMatrixLayerEffect class.

public WebGPUColorMatrixLayerEffect(ColorMatrix matrix)

Parameters

matrix ColorMatrix

The colour matrix applied to the layer content.

Properties

Matrix

Gets the colour matrix applied to the layer content.

public ColorMatrix Matrix { get; }

Property Value

ColorMatrix