Method MakeGrey
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
RGBValueColor.
weight_r
doubleWeight of R component of a color.
weight_g
doubleWeight of G component of a color.
weight_b
doubleWeight 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).