ColorYUV

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public class ColorYUV extends Struct<ColorYUV>

Represents an YUV color.

Constructors

ConstructorDescription
ColorYUV()
ColorYUV(int Y, int U, int V)Initializes a new instance of the ColorYUV structure with the specified luminance component, blue and red projection components.
ColorYUV(Color color)Initializes a new instance of the ColorYUV structure from the specified existing Color.

Methods

MethodDescription
getY()Gets the luminance component value of this ColorYUV structure.
getU()Gets the blue projection component value of this ColorYUV structure.
getV()Gets the red projection component value of this ColorYUV structure.
toString()Converts this ColorYUV structure to a human-readable string.
CloneTo(ColorYUV that)
Clone()
equals(Object obj)
hashCode()

ColorYUV()

public ColorYUV()

ColorYUV(int Y, int U, int V)

public ColorYUV(int Y, int U, int V)

Initializes a new instance of the ColorYUV structure with the specified luminance component, blue and red projection components.

Parameters:

ParameterTypeDescription
YintThe luminance component value.
UintThe blue projection component value.
VintThe red projection component value.

ColorYUV(Color color)

public ColorYUV(Color color)

Initializes a new instance of the ColorYUV structure from the specified existing Color.

Parameters:

ParameterTypeDescription
colorColorThe Color from which to create the new ColorYUV.

getY()

public final double getY()

Gets the luminance component value of this ColorYUV structure.

Returns: double - the luminance component value of this ColorYUV structure.

getU()

public final double getU()

Gets the blue projection component value of this ColorYUV structure.

Returns: double - the blue projection component value of this ColorYUV structure.

getV()

public final double getV()

Gets the red projection component value of this ColorYUV structure.

Returns: double - the red projection component value of this ColorYUV structure.

toString()

public String toString()

Converts this ColorYUV structure to a human-readable string.

Returns: java.lang.String - Converts this ColorYUV structure to a human-readable string.

CloneTo(ColorYUV that)

public void CloneTo(ColorYUV that)

Parameters:

ParameterTypeDescription
thatColorYUV

Clone()

public ColorYUV Clone()

Returns: ColorYUV

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

hashCode()

public int hashCode()

Returns: int