Table of Contents

Property GrayscaleColorFilter

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GrayscaleColorFilter

Gets or sets the SKColorFilter used to convert images to grayscale.

public static SKColorFilter GrayscaleColorFilter { get; set; }

Property Value

SKColorFilter

Remarks

This property provides a reusable grayscale color filter for SkiaSharp drawing operations. The filter is lazily initialized on first access using a color matrix that converts colors to grayscale by applying weighted sums to the red, green, and blue channels. You can also set this property to use a custom SKColorFilter.