YPbPr Constructor

Constructor in YPbPr

Declaration

public YPbPr(float Y, float Pb, float Pr)

Description

Creates new Y′PbPr components from the given values.

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

Overload

Declaration

public YPbPr(YPbPr other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public YPbPr(Color color)

Description

Creates new Y′PbPr components from the given color.

Parameters

colorThe color to extract the components from.

Overload

Declaration

public YPbPr(Color color, SignalEncoding encoding)

Description

Creates new Y′PbPr components from the given color and encoding.

Parameters

colorThe color to extract the components from.
encodingThe encoding to use.