YUV Constructor

Constructor in YUV

Declaration

public YUV(float Y, float U, float V)

Description

Creates new Y′UV components from the given values.

Parameters

YThe luma component of the color in the range [0..1].
UThe blue-difference chroma component of the color in the range [-0.436..0.436].
VThe red-difference chroma component of the color in the range [-0.615..0.615].

Overload

Declaration

public YUV(YUV other)

Description

Creates a new copy of the components.

Parameters

otherThe other components to copy.

Overload

Declaration

public YUV(Color color)

Description

Creates new Y′UV components from the given color.

Parameters

colorThe color to extract the components from.

Overload

Declaration

public YUV(Color color, SignalEncoding encoding)

Description

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

Parameters

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