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
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
Y | int | The luminance component value. |
U | int | The blue projection component value. |
V | int | The 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:
Parameter | Type | Description |
---|---|---|
color | Color | The 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:
Parameter | Type | Description |
---|---|---|
that | ColorYUV |
Clone()
public ColorYUV Clone()
Returns: ColorYUV
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
hashCode()
public int hashCode()
Returns: int