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
Y | The luma component of the color in the range [0..1]. |
Pb | The blue-difference chroma component of the color in the range [-0.5..0.5]. |
Pr | The 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
other | The other components to copy. |
Overload
Declaration
public YPbPr(Color color)
Description
Creates new Y′PbPr components from the given color.
Parameters
color | The 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
color | The color to extract the components from. |
encoding | The encoding to use. |