YCbCr Constructor

Constructor in YCbCr

Declaration

public YCbCr(float Y, float Cb, float Cr)

Description

Creates new Y′CbCr components from the given values.

Parameters

YThe luma component of the color in the full range [0..255].
CbThe blue-difference chroma component of the color in the full range [0..255].
CrThe red-difference chroma component of the color in the full range [0..255].

Overload

Declaration

public YCbCr(YCbCr other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public YCbCr(Color color)

Description

Creates new Y′CbCr components from the given color.

Parameters

colorThe color to extract the components from.

Overload

Declaration

public YCbCr(Color color, SignalEncoding encoding)

Description

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

Parameters

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