Table of Contents

Method ConvertToGreyscale

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

ConvertToGreyscale(double, double, double)

Returns a greyscale version of the image.

public virtual GenericImage ConvertToGreyscale(double weightR, double weightG, double weightB)

Parameters

weightR double

Weight of the Red component.

weightG double

Weight of the Green component.

weightB double

Weight of the Blue component.

Returns

GenericImage

Remarks

The returned image uses the luminance component of the original to calculate the greyscale. Defaults to using the standard ITU-T BT.601 when converting to YUV, where every pixel equals(R* weight_r) + (G* weight_g) + (B* weight_b).

ConvertToGreyscale()

Returns a greyscale version of the image.

public virtual GenericImage ConvertToGreyscale()

Returns

GenericImage