**Inheritance:**
java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
```
public class ColorYUV extends Struct<ColorYUV>
```

表示一种 YUV 颜色。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [ColorYUV()](#ColorYUV--) |  |
| [ColorYUV(int Y, int U, int V)](#ColorYUV-int-int-int-) | 使用指定的亮度分量、蓝色和红色投影分量初始化 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的新实例。 |
| [ColorYUV(Color color)](#ColorYUV-com.aspose.imaging.Color-) | 从指定的现有 [Color](../../com.aspose.imaging/color) 初始化 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的新实例。 |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getY()](#getY--) | 获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的亮度分量值。 |
| [getU()](#getU--) | 获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的蓝色投影分量值。 |
| [getV()](#getV--) | 获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的红色投影分量值。 |
| [toString()](#toString--) | 将此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构转换为人类可读的字符串。 |
| [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)
```


使用指定的亮度分量、蓝色和红色投影分量初始化 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| Y | int | 亮度分量值。 |
| U | int | 蓝色投影分量值。 |
| V | int | 红色投影分量值。 |

### ColorYUV(Color color) {#ColorYUV-com.aspose.imaging.Color-}
```
public ColorYUV(Color color)
```


从指定的现有 [Color](../../com.aspose.imaging/color) 初始化 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的新实例。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| color | [Color](../../com.aspose.imaging/color) | 用于创建新 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 的 Color。 |

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


获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的亮度分量值。

**Returns:**
double - 此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的亮度分量值。
### getU() {#getU--}
```
public final double getU()
```


获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的蓝色投影分量值。

**Returns:**
double - 此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的蓝色投影分量值。
### getV() {#getV--}
```
public final double getV()
```


获取此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的红色投影分量值。

**Returns:**
double - 此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构的红色投影分量值。
### toString() {#toString--}
```
public String toString()
```


将此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构转换为人类可读的字符串。

**Returns:**
java.lang.String - 将此 [ColorYUV](../../com.aspose.imaging.magicwand/coloryuv) 结构转换为人类可读的字符串。
### CloneTo(ColorYUV that) {#CloneTo-com.aspose.imaging.magicwand.ColorYUV-}
```
public void CloneTo(ColorYUV that)
```




**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 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:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj | java.lang.Object |  |

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




**Returns:**
int
