**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--) |  |
| [ColorYUV(int Y, int U, int V)](#ColorYUV-int-int-int-) | Initializes a new instance of the [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure with the specified luminance component, blue and red projection components. |
| [ColorYUV(Color color)](#ColorYUV-com.aspose.imaging.Color-) | Initializes a new instance of the [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure from the specified existing [Color](../../com.aspose.imaging/color). |
## Methods

| Method | Description |
| --- | --- |
| [getY()](#getY--) | Gets the luminance component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure. |
| [getU()](#getU--) | Gets the blue projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure. |
| [getV()](#getV--) | Gets the red projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure. |
| [toString()](#toString--) | Converts this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure to a human-readable string. |
| [CloneTo(ColorYUV that)](#CloneTo-com.aspose.imaging.magicwand.ColorYUV-) |  |
| [Clone()](#Clone--) |  |
| [equals(Object obj)](#equals-java.lang.Object-) |  |
| [hashCode()](#hashCode--) |  |
### ColorYUV() {#ColorYUV--}
```
public ColorYUV()
```


### ColorYUV(int Y, int U, int V) {#ColorYUV-int-int-int-}
```
public ColorYUV(int Y, int U, int V)
```


Initializes a new instance of the [ColorYUV](../../com.aspose.imaging.magicwand/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) {#ColorYUV-com.aspose.imaging.Color-}
```
public ColorYUV(Color color)
```


Initializes a new instance of the [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure from the specified existing [Color](../../com.aspose.imaging/color).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | [Color](../../com.aspose.imaging/color) | The Color from which to create the new [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv). |

### getY() {#getY--}
```
public final double getY()
```


Gets the luminance component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.

**Returns:**
double - the luminance component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.
### getU() {#getU--}
```
public final double getU()
```


Gets the blue projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.

**Returns:**
double - the blue projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.
### getV() {#getV--}
```
public final double getV()
```


Gets the red projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.

**Returns:**
double - the red projection component value of this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure.
### toString() {#toString--}
```
public String toString()
```


Converts this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure to a human-readable string.

**Returns:**
java.lang.String - Converts this [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) structure to a human-readable string.
### CloneTo(ColorYUV that) {#CloneTo-com.aspose.imaging.magicwand.ColorYUV-}
```
public void CloneTo(ColorYUV that)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| that | [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) |  |

### Clone() {#Clone--}
```
public ColorYUV Clone()
```




**Returns:**
[ColorYUV](../../com.aspose.imaging.magicwand/coloryuv)
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object |  |

**Returns:**
boolean
### hashCode() {#hashCode--}
```
public int hashCode()
```




**Returns:**
int
