Conversion.YPbPrToRGB

Static Method in Conversion

Declaration

public static Color YPbPrToRGB(float Y, float Pb, float Pr, SignalEncoding encoding = SignalEncoding.Rec709)

Description

Converts Y′PbPr components to an RGB color.

Parameters

YThe luma component of the color in the range [0..1].
PbThe blue-difference chroma component of the color in the range [-0.5..0.5].
PrThe red-difference chroma component of the color in the range [-0.5..0.5].
encodingThe encoding to use (default=Rec709).

Returns

ColorThe converted RGB color.