Table of Contents

Method MakeGrey

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

MakeGrey(ref RGBValue, double, double, double)

Creates a grey color from rgb parameters using floating point arithmetic.

public static void MakeGrey(ref RGBValue rgb, double weight_r, double weight_g, double weight_b)

Parameters

rgb RGBValue

Color.

weight_r double

Weight of R component of a color.

weight_g double

Weight of G component of a color.

weight_b double

Weight of B component of a color.

Remarks

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).