Table of Contents

Method ToGrayScale

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

ToGrayScale()

Converts the current image to a grayscale version.

public virtual Image ToGrayScale()

Returns

Image

A new Image instance representing the grayscale version of the current image.

Remarks

If the GrayScale event is not null, it will be invoked to allow custom grayscale conversion logic. Otherwise, the default grayscale conversion logic will be applied using the ChangeToGrayScale() method.