Conversion.RGBToYIQ

Static Method in Conversion

Declaration

public static YIQ RGBToYIQ(float R, float G, float B, SignalEncoding encoding = SignalEncoding.Rec709)

Description

Converts RGB components to Y′IQ components.

Parameters

RThe red component of the color in the range [0..1].
GThe green component of the color in the range [0..1].
BThe blue component of the color in the range [0..1].
encodingThe encoding to use (default=Rec709).

Returns

YIQThe converted Y′IQ components.