Class BackdropGrayscaleLayerEffect
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Desaturates the backdrop beneath a compositing layer towards grayscale using ITU-R BT.709
luminance coefficients, matching the CSS definition. The CSS equivalent is
backdrop-filter: grayscale().
public sealed class BackdropGrayscaleLayerEffect : BackdropColorMatrixLayerEffect
- Inheritance
-
BackdropGrayscaleLayerEffect
- Inherited Members
Constructors
BackdropGrayscaleLayerEffect(float)
Initializes a new instance of the BackdropGrayscaleLayerEffect class.
public BackdropGrayscaleLayerEffect(float amount)
Parameters
amountfloatThe grayscale amount between 0 and 1: 0 leaves the backdrop unchanged and 1 is fully grayscale.
Properties
Amount
Gets the grayscale amount.
public float Amount { get; }