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

**All Implemented Interfaces:**
java.io.Serializable
```
public class Color extends Struct<Color> implements Serializable
```

像素的颜色。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [Color()](#Color--) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getEmpty()](#getEmpty--) | 获取一个空的 `Color`。 |
| [getTransparent()](#getTransparent--) | 获取系统定义的颜色。 |
| [getAliceBlue()](#getAliceBlue--) | 获取系统定义的颜色。 |
| [getAntiqueWhite()](#getAntiqueWhite--) | 获取系统定义的颜色。 |
| [getAqua()](#getAqua--) | 获取系统定义的颜色。 |
| [getAquamarine()](#getAquamarine--) | 获取系统定义的颜色。 |
| [getAzure()](#getAzure--) | 获取系统定义的颜色。 |
| [getBeige()](#getBeige--) | 获取系统定义的颜色。 |
| [getBisque()](#getBisque--) | 获取系统定义的颜色。 |
| [getBlack()](#getBlack--) | 获取系统定义的颜色。 |
| [getBlanchedAlmond()](#getBlanchedAlmond--) | 获取系统定义的颜色。 |
| [getBlue()](#getBlue--) | 获取系统定义的颜色。 |
| [getBlueViolet()](#getBlueViolet--) | 获取系统定义的颜色。 |
| [getBrown()](#getBrown--) | 获取系统定义的颜色。 |
| [getBurlyWood()](#getBurlyWood--) | 获取系统定义的颜色。 |
| [getCadetBlue()](#getCadetBlue--) | 获取系统定义的颜色。 |
| [getChartreuse()](#getChartreuse--) | 获取系统定义的颜色。 |
| [getChocolate()](#getChocolate--) | 获取系统定义的颜色。 |
| [getCoral()](#getCoral--) | 获取系统定义的颜色。 |
| [getCornflowerBlue()](#getCornflowerBlue--) | 获取系统定义的颜色。 |
| [getCornsilk()](#getCornsilk--) | 获取系统定义的颜色。 |
| [getCrimson()](#getCrimson--) | 获取系统定义的颜色。 |
| [getCyan()](#getCyan--) | 获取系统定义的颜色。 |
| [getDarkBlue()](#getDarkBlue--) | 获取系统定义的颜色。 |
| [getDarkCyan()](#getDarkCyan--) | 获取系统定义的颜色。 |
| [getDarkGoldenrod()](#getDarkGoldenrod--) | 获取系统定义的颜色。 |
| [getDarkGray()](#getDarkGray--) | 获取系统定义的颜色。 |
| [getDarkGreen()](#getDarkGreen--) | 获取系统定义的颜色。 |
| [getDarkKhaki()](#getDarkKhaki--) | 获取系统定义的颜色。 |
| [getDarkMagenta()](#getDarkMagenta--) | 获取系统定义的颜色。 |
| [getDarkOliveGreen()](#getDarkOliveGreen--) | 获取系统定义的颜色。 |
| [getDarkOrange()](#getDarkOrange--) | 获取系统定义的颜色。 |
| [getDarkOrchid()](#getDarkOrchid--) | 获取系统定义的颜色。 |
| [getDarkRed()](#getDarkRed--) | 获取系统定义的颜色。 |
| [getDarkSalmon()](#getDarkSalmon--) | 获取系统定义的颜色。 |
| [getDarkSeaGreen()](#getDarkSeaGreen--) | 获取系统定义的颜色。 |
| [getDarkSlateBlue()](#getDarkSlateBlue--) | 获取系统定义的颜色。 |
| [getDarkSlateGray()](#getDarkSlateGray--) | 获取系统定义的颜色。 |
| [getDarkTurquoise()](#getDarkTurquoise--) | 获取系统定义的颜色。 |
| [getDarkViolet()](#getDarkViolet--) | 获取系统定义的颜色。 |
| [getDeepPink()](#getDeepPink--) | 获取系统定义的颜色。 |
| [getDeepSkyBlue()](#getDeepSkyBlue--) | 获取系统定义的颜色。 |
| [getDimGray()](#getDimGray--) | 获取系统定义的颜色。 |
| [getDodgerBlue()](#getDodgerBlue--) | 获取系统定义的颜色。 |
| [getFirebrick()](#getFirebrick--) | 获取系统定义的颜色。 |
| [getFloralWhite()](#getFloralWhite--) | 获取系统定义的颜色。 |
| [getForestGreen()](#getForestGreen--) | 获取系统定义的颜色。 |
| [getFuchsia()](#getFuchsia--) | 获取系统定义的颜色。 |
| [getGainsboro()](#getGainsboro--) | 获取系统定义的颜色。 |
| [getGhostWhite()](#getGhostWhite--) | 获取系统定义的颜色。 |
| [getGold()](#getGold--) | 获取系统定义的颜色。 |
| [getGoldenrod()](#getGoldenrod--) | 获取系统定义的颜色。 |
| [getGray()](#getGray--) | 获取系统定义的颜色。 |
| [getGreen()](#getGreen--) | 获取系统定义的颜色。 |
| [getGreenYellow()](#getGreenYellow--) | 获取系统定义的颜色。 |
| [getHoneydew()](#getHoneydew--) | 获取系统定义的颜色。 |
| [getHotPink()](#getHotPink--) | 获取系统定义的颜色。 |
| [getIndianRed()](#getIndianRed--) | 获取系统定义的颜色。 |
| [getIndigo()](#getIndigo--) | 获取系统定义的颜色。 |
| [getIvory()](#getIvory--) | 获取系统定义的颜色。 |
| [getKhaki()](#getKhaki--) | 获取系统定义的颜色。 |
| [getLavender()](#getLavender--) | 获取系统定义的颜色。 |
| [getLavenderBlush()](#getLavenderBlush--) | 获取系统定义的颜色。 |
| [getLawnGreen()](#getLawnGreen--) | 获取系统定义的颜色。 |
| [getLemonChiffon()](#getLemonChiffon--) | 获取系统定义的颜色。 |
| [getLightBlue()](#getLightBlue--) | 获取系统定义的颜色。 |
| [getLightCoral()](#getLightCoral--) | 获取系统定义的颜色。 |
| [getLightCyan()](#getLightCyan--) | 获取系统定义的颜色。 |
| [getLightGoldenrodYellow()](#getLightGoldenrodYellow--) | 获取系统定义的颜色。 |
| [getLightGreen()](#getLightGreen--) | 获取系统定义的颜色。 |
| [getLightGray()](#getLightGray--) | 获取系统定义的颜色。 |
| [getLightPink()](#getLightPink--) | 获取系统定义的颜色。 |
| [getLightSalmon()](#getLightSalmon--) | 获取系统定义的颜色。 |
| [getLightSeaGreen()](#getLightSeaGreen--) | 获取系统定义的颜色。 |
| [getLightSkyBlue()](#getLightSkyBlue--) | 获取系统定义的颜色。 |
| [getLightSlateGray()](#getLightSlateGray--) | 获取系统定义的颜色。 |
| [getLightSteelBlue()](#getLightSteelBlue--) | 获取系统定义的颜色。 |
| [getLightYellow()](#getLightYellow--) | 获取系统定义的颜色。 |
| [getLime()](#getLime--) | 获取系统定义的颜色。 |
| [getLimeGreen()](#getLimeGreen--) | 获取系统定义的颜色。 |
| [getLinen()](#getLinen--) | 获取系统定义的颜色。 |
| [getMagenta()](#getMagenta--) | 获取系统定义的颜色。 |
| [getMaroon()](#getMaroon--) | 获取系统定义的颜色。 |
| [getMediumAquamarine()](#getMediumAquamarine--) | 获取系统定义的颜色。 |
| [getMediumBlue()](#getMediumBlue--) | 获取系统定义的颜色。 |
| [getMediumOrchid()](#getMediumOrchid--) | 获取系统定义的颜色。 |
| [getMediumPurple()](#getMediumPurple--) | 获取系统定义的颜色。 |
| [getMediumSeaGreen()](#getMediumSeaGreen--) | 获取系统定义的颜色。 |
| [getMediumSlateBlue()](#getMediumSlateBlue--) | 获取系统定义的颜色。 |
| [getMediumSpringGreen()](#getMediumSpringGreen--) | 获取系统定义的颜色。 |
| [getMediumTurquoise()](#getMediumTurquoise--) | 获取系统定义的颜色。 |
| [getMediumVioletRed()](#getMediumVioletRed--) | 获取系统定义的颜色。 |
| [getMidnightBlue()](#getMidnightBlue--) | 获取系统定义的颜色。 |
| [getMintCream()](#getMintCream--) | 获取系统定义的颜色。 |
| [getMistyRose()](#getMistyRose--) | 获取系统定义的颜色。 |
| [getMoccasin()](#getMoccasin--) | 获取系统定义的颜色。 |
| [getNavajoWhite()](#getNavajoWhite--) | 获取系统定义的颜色。 |
| [getNavy()](#getNavy--) | 获取系统定义的颜色。 |
| [getOldLace()](#getOldLace--) | 获取系统定义的颜色。 |
| [getOlive()](#getOlive--) | 获取系统定义的颜色。 |
| [getOliveDrab()](#getOliveDrab--) | 获取系统定义的颜色。 |
| [getOrange()](#getOrange--) | 获取系统定义的颜色。 |
| [getOrangeRed()](#getOrangeRed--) | 获取系统定义的颜色。 |
| [getOrchid()](#getOrchid--) | 获取系统定义的颜色。 |
| [getPaleGoldenrod()](#getPaleGoldenrod--) | 获取系统定义的颜色。 |
| [getPaleGreen()](#getPaleGreen--) | 获取系统定义的颜色。 |
| [getPaleTurquoise()](#getPaleTurquoise--) | 获取系统定义的颜色。 |
| [getPaleVioletRed()](#getPaleVioletRed--) | 获取系统定义的颜色。 |
| [getPapayaWhip()](#getPapayaWhip--) | 获取系统定义的颜色。 |
| [getPeachPuff()](#getPeachPuff--) | 获取系统定义的颜色。 |
| [getPeru()](#getPeru--) | 获取系统定义的颜色。 |
| [getPink()](#getPink--) | 获取系统定义的颜色。 |
| [getPlum()](#getPlum--) | 获取系统定义的颜色。 |
| [getPowderBlue()](#getPowderBlue--) | 获取系统定义的颜色。 |
| [getPurple()](#getPurple--) | 获取系统定义的颜色。 |
| [getRed()](#getRed--) | 获取系统定义的颜色。 |
| [getRosyBrown()](#getRosyBrown--) | 获取系统定义的颜色。 |
| [getRoyalBlue()](#getRoyalBlue--) | 获取系统定义的颜色。 |
| [getSaddleBrown()](#getSaddleBrown--) | 获取系统定义的颜色。 |
| [getSalmon()](#getSalmon--) | 获取系统定义的颜色。 |
| [getSandyBrown()](#getSandyBrown--) | 获取系统定义的颜色。 |
| [getSeaGreen()](#getSeaGreen--) | 获取系统定义的颜色。 |
| [getSeaShell()](#getSeaShell--) | 获取系统定义的颜色。 |
| [getSienna()](#getSienna--) | 获取系统定义的颜色。 |
| [getSilver()](#getSilver--) | 获取系统定义的颜色。 |
| [getSkyBlue()](#getSkyBlue--) | 获取系统定义的颜色。 |
| [getSlateBlue()](#getSlateBlue--) | 获取系统定义的颜色。 |
| [getSlateGray()](#getSlateGray--) | 获取系统定义的颜色。 |
| [getSnow()](#getSnow--) | 获取系统定义的颜色。 |
| [getSpringGreen()](#getSpringGreen--) | 获取系统定义的颜色。 |
| [getSteelBlue()](#getSteelBlue--) | 获取系统定义的颜色。 |
| [getTan()](#getTan--) | 获取系统定义的颜色。 |
| [getTeal()](#getTeal--) | 获取系统定义的颜色。 |
| [getThistle()](#getThistle--) | 获取系统定义的颜色。 |
| [getTomato()](#getTomato--) | 获取系统定义的颜色。 |
| [getTurquoise()](#getTurquoise--) | 获取系统定义的颜色。 |
| [getViolet()](#getViolet--) | 获取系统定义的颜色。 |
| [getWheat()](#getWheat--) | 获取系统定义的颜色。 |
| [getWhite()](#getWhite--) | 获取系统定义的颜色。 |
| [getWhiteSmoke()](#getWhiteSmoke--) | 获取系统定义的颜色。 |
| [getYellow()](#getYellow--) | 获取系统定义的颜色。 |
| [getYellowGreen()](#getYellowGreen--) | 获取系统定义的颜色。 |
| [op_Equality(Color left, Color right)](#op-Equality-com.aspose.imaging.Color-com.aspose.imaging.Color-) | 测试两个指定的 `com.aspose.imaging.Color` 结构是否等价。 |
| [op_Inequality(Color left, Color right)](#op-Inequality-com.aspose.imaging.Color-com.aspose.imaging.Color-) | 测试两个指定的 `com.aspose.imaging.Color` 结构是否不同。 |
| [fromArgb(int argb)](#fromArgb-int-) | 从 32 位 ARGB 值创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromArgb(int alpha, int red, int green, int blue)](#fromArgb-int-int-int-int-) | 从四个 ARGB 分量（alpha、red、green 和 blue）值创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromArgb(byte alpha, byte red, byte green, byte blue)](#fromArgb-byte-byte-byte-byte-) | 从四个 ARGB 分量（alpha、red、green 和 blue）值创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromArgb(int alpha, Color baseColor)](#fromArgb-int-com.aspose.imaging.Color-) | 从指定的 `com.aspose.imaging.Color` 结构创建一个 `com.aspose.imaging.Color` 结构，但使用新的指定 alpha 值。 |
| [fromArgb(int red, int green, int blue)](#fromArgb-int-int-int-) | 从指定的 8 位颜色值（红色、绿色和蓝色）创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromArgb(byte red, byte green, byte blue)](#fromArgb-byte-byte-byte-) | 从指定的 8 位颜色值（红色、绿色和蓝色）创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromKnownColor(int color)](#fromKnownColor-int-) | 从指定的预定义颜色创建一个 `com.aspose.imaging.Color` 结构。 |
| [fromName(String name)](#fromName-java.lang.String-) | 根据指定的预定义颜色名称创建一个 `com.aspose.imaging.Color` 结构。 |
| [toCmyk(Color[] pixels)](#toCmyk-com.aspose.imaging.Color---) | 从 Color 转换为 CMYKColor。 |
| [toCmyk(Color pixel)](#toCmyk-com.aspose.imaging.Color-) | 从 Color 转换为 CMYKColor。 |
| [toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)](#toCmykIcc-com.aspose.imaging.Color-java.io.InputStream-java.io.InputStream-) | 使用默认配置文件的 ICC 转换，将 Color 转换为 CmykColor。 |
| [toCmykIcc(Color pixel)](#toCmykIcc-com.aspose.imaging.Color-) | 使用默认配置文件的 ICC 转换，将 Color 转换为 CMYKColor。 |
| [toCmykIcc(Color[] pixels)](#toCmykIcc-com.aspose.imaging.Color---) | 使用默认配置文件的 ICC 转换，将 Color 转换为 CMYKColor。 |
| [toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)](#toCmykIcc-com.aspose.imaging.Color---java.io.InputStream-java.io.InputStream-) | 使用 ICC 转换，将 Color 转换为 CMYKColor。 |
| [isEquals(Color obj1, Color obj2)](#isEquals-com.aspose.imaging.Color-com.aspose.imaging.Color-) |  |
| [getR()](#getR--) | 获取此 `com.aspose.imaging.Color` 结构的红色分量值。 |
| [getG()](#getG--) | 获取此 `com.aspose.imaging.Color` 结构的绿色分量值。 |
| [getB()](#getB--) | 获取此 `com.aspose.imaging.Color` 结构的蓝色分量值。 |
| [getA()](#getA--) | 获取此 `com.aspose.imaging.Color` 结构的 alpha 分量值。 |
| [isKnownColor()](#isKnownColor--) | 获取一个值，指示此 `com.aspose.imaging.Color` 结构是否为预定义颜色。 |
| [isEmpty()](#isEmpty--) | 获取一个值，指示此 `com.aspose.imaging.Color` 结构是否未初始化。 |
| [isNamedColor()](#isNamedColor--) | 获取一个值，指示此 `com.aspose.imaging.Color` 结构是命名颜色还是 `Aspose.Imaging.KnownColor` 枚举的成员。 |
| [getName()](#getName--) | 获取此 `com.aspose.imaging.Color` 的名称。 |
| [getBrightness()](#getBrightness--) | 获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 亮度值。 |
| [getHue()](#getHue--) | 获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 色相值（以度为单位）。 |
| [getSaturation()](#getSaturation--) | 获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 饱和度值。 |
| [toArgb()](#toArgb--) | 获取此 `com.aspose.imaging.Color` 结构的 32 位 ARGB 值。 |
| [toKnownColor()](#toKnownColor--) | 获取此 `com.aspose.imaging.Color` 结构的 `Aspose.Imaging.KnownColor` 值。 |
| [toString()](#toString--) | 将此 `com.aspose.imaging.Color` 结构转换为可读的字符串。 |
| [equals(Object obj)](#equals-java.lang.Object-) | 测试指定的对象是否为 `com.aspose.imaging.Color` 结构且等价于此 `com.aspose.imaging.Color` 结构。 |
| [hashCode()](#hashCode--) | 返回此 `com.aspose.imaging.Color` 结构的哈希码。 |
| [CloneTo(Color that)](#CloneTo-com.aspose.imaging.Color-) |  |
| [Clone()](#Clone--) |  |
### Color() {#Color--}
```
public Color()
```


### getEmpty() {#getEmpty--}
```
public static Color getEmpty()
```


获取一个空的 `Color`。

**Returns:**
[Color](../../com.aspose.imaging/color) - The empty `Color`.
### getTransparent() {#getTransparent--}
```
public static Color getTransparent()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getAliceBlue() {#getAliceBlue--}
```
public static Color getAliceBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getAntiqueWhite() {#getAntiqueWhite--}
```
public static Color getAntiqueWhite()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getAqua() {#getAqua--}
```
public static Color getAqua()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getAquamarine() {#getAquamarine--}
```
public static Color getAquamarine()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getAzure() {#getAzure--}
```
public static Color getAzure()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBeige() {#getBeige--}
```
public static Color getBeige()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBisque() {#getBisque--}
```
public static Color getBisque()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBlack() {#getBlack--}
```
public static Color getBlack()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBlanchedAlmond() {#getBlanchedAlmond--}
```
public static Color getBlanchedAlmond()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBlue() {#getBlue--}
```
public static Color getBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBlueViolet() {#getBlueViolet--}
```
public static Color getBlueViolet()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBrown() {#getBrown--}
```
public static Color getBrown()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getBurlyWood() {#getBurlyWood--}
```
public static Color getBurlyWood()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCadetBlue() {#getCadetBlue--}
```
public static Color getCadetBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getChartreuse() {#getChartreuse--}
```
public static Color getChartreuse()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getChocolate() {#getChocolate--}
```
public static Color getChocolate()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCoral() {#getCoral--}
```
public static Color getCoral()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCornflowerBlue() {#getCornflowerBlue--}
```
public static Color getCornflowerBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCornsilk() {#getCornsilk--}
```
public static Color getCornsilk()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCrimson() {#getCrimson--}
```
public static Color getCrimson()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getCyan() {#getCyan--}
```
public static Color getCyan()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkBlue() {#getDarkBlue--}
```
public static Color getDarkBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkCyan() {#getDarkCyan--}
```
public static Color getDarkCyan()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkGoldenrod() {#getDarkGoldenrod--}
```
public static Color getDarkGoldenrod()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkGray() {#getDarkGray--}
```
public static Color getDarkGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkGreen() {#getDarkGreen--}
```
public static Color getDarkGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkKhaki() {#getDarkKhaki--}
```
public static Color getDarkKhaki()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkMagenta() {#getDarkMagenta--}
```
public static Color getDarkMagenta()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkOliveGreen() {#getDarkOliveGreen--}
```
public static Color getDarkOliveGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkOrange() {#getDarkOrange--}
```
public static Color getDarkOrange()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkOrchid() {#getDarkOrchid--}
```
public static Color getDarkOrchid()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkRed() {#getDarkRed--}
```
public static Color getDarkRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkSalmon() {#getDarkSalmon--}
```
public static Color getDarkSalmon()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkSeaGreen() {#getDarkSeaGreen--}
```
public static Color getDarkSeaGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkSlateBlue() {#getDarkSlateBlue--}
```
public static Color getDarkSlateBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkSlateGray() {#getDarkSlateGray--}
```
public static Color getDarkSlateGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkTurquoise() {#getDarkTurquoise--}
```
public static Color getDarkTurquoise()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDarkViolet() {#getDarkViolet--}
```
public static Color getDarkViolet()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDeepPink() {#getDeepPink--}
```
public static Color getDeepPink()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDeepSkyBlue() {#getDeepSkyBlue--}
```
public static Color getDeepSkyBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDimGray() {#getDimGray--}
```
public static Color getDimGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getDodgerBlue() {#getDodgerBlue--}
```
public static Color getDodgerBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getFirebrick() {#getFirebrick--}
```
public static Color getFirebrick()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getFloralWhite() {#getFloralWhite--}
```
public static Color getFloralWhite()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getForestGreen() {#getForestGreen--}
```
public static Color getForestGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getFuchsia() {#getFuchsia--}
```
public static Color getFuchsia()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGainsboro() {#getGainsboro--}
```
public static Color getGainsboro()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGhostWhite() {#getGhostWhite--}
```
public static Color getGhostWhite()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGold() {#getGold--}
```
public static Color getGold()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGoldenrod() {#getGoldenrod--}
```
public static Color getGoldenrod()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGray() {#getGray--}
```
public static Color getGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` structure representing a system-defined color.
### getGreen() {#getGreen--}
```
public static Color getGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getGreenYellow() {#getGreenYellow--}
```
public static Color getGreenYellow()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getHoneydew() {#getHoneydew--}
```
public static Color getHoneydew()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getHotPink() {#getHotPink--}
```
public static Color getHotPink()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getIndianRed() {#getIndianRed--}
```
public static Color getIndianRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getIndigo() {#getIndigo--}
```
public static Color getIndigo()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getIvory() {#getIvory--}
```
public static Color getIvory()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getKhaki() {#getKhaki--}
```
public static Color getKhaki()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLavender() {#getLavender--}
```
public static Color getLavender()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLavenderBlush() {#getLavenderBlush--}
```
public static Color getLavenderBlush()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLawnGreen() {#getLawnGreen--}
```
public static Color getLawnGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLemonChiffon() {#getLemonChiffon--}
```
public static Color getLemonChiffon()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightBlue() {#getLightBlue--}
```
public static Color getLightBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightCoral() {#getLightCoral--}
```
public static Color getLightCoral()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightCyan() {#getLightCyan--}
```
public static Color getLightCyan()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightGoldenrodYellow() {#getLightGoldenrodYellow--}
```
public static Color getLightGoldenrodYellow()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightGreen() {#getLightGreen--}
```
public static Color getLightGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightGray() {#getLightGray--}
```
public static Color getLightGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightPink() {#getLightPink--}
```
public static Color getLightPink()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightSalmon() {#getLightSalmon--}
```
public static Color getLightSalmon()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightSeaGreen() {#getLightSeaGreen--}
```
public static Color getLightSeaGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightSkyBlue() {#getLightSkyBlue--}
```
public static Color getLightSkyBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightSlateGray() {#getLightSlateGray--}
```
public static Color getLightSlateGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightSteelBlue() {#getLightSteelBlue--}
```
public static Color getLightSteelBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLightYellow() {#getLightYellow--}
```
public static Color getLightYellow()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLime() {#getLime--}
```
public static Color getLime()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLimeGreen() {#getLimeGreen--}
```
public static Color getLimeGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getLinen() {#getLinen--}
```
public static Color getLinen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMagenta() {#getMagenta--}
```
public static Color getMagenta()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMaroon() {#getMaroon--}
```
public static Color getMaroon()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumAquamarine() {#getMediumAquamarine--}
```
public static Color getMediumAquamarine()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumBlue() {#getMediumBlue--}
```
public static Color getMediumBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumOrchid() {#getMediumOrchid--}
```
public static Color getMediumOrchid()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumPurple() {#getMediumPurple--}
```
public static Color getMediumPurple()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumSeaGreen() {#getMediumSeaGreen--}
```
public static Color getMediumSeaGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumSlateBlue() {#getMediumSlateBlue--}
```
public static Color getMediumSlateBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumSpringGreen() {#getMediumSpringGreen--}
```
public static Color getMediumSpringGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumTurquoise() {#getMediumTurquoise--}
```
public static Color getMediumTurquoise()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMediumVioletRed() {#getMediumVioletRed--}
```
public static Color getMediumVioletRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMidnightBlue() {#getMidnightBlue--}
```
public static Color getMidnightBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMintCream() {#getMintCream--}
```
public static Color getMintCream()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMistyRose() {#getMistyRose--}
```
public static Color getMistyRose()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getMoccasin() {#getMoccasin--}
```
public static Color getMoccasin()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getNavajoWhite() {#getNavajoWhite--}
```
public static Color getNavajoWhite()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getNavy() {#getNavy--}
```
public static Color getNavy()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOldLace() {#getOldLace--}
```
public static Color getOldLace()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOlive() {#getOlive--}
```
public static Color getOlive()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOliveDrab() {#getOliveDrab--}
```
public static Color getOliveDrab()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOrange() {#getOrange--}
```
public static Color getOrange()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOrangeRed() {#getOrangeRed--}
```
public static Color getOrangeRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getOrchid() {#getOrchid--}
```
public static Color getOrchid()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPaleGoldenrod() {#getPaleGoldenrod--}
```
public static Color getPaleGoldenrod()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPaleGreen() {#getPaleGreen--}
```
public static Color getPaleGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPaleTurquoise() {#getPaleTurquoise--}
```
public static Color getPaleTurquoise()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPaleVioletRed() {#getPaleVioletRed--}
```
public static Color getPaleVioletRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPapayaWhip() {#getPapayaWhip--}
```
public static Color getPapayaWhip()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPeachPuff() {#getPeachPuff--}
```
public static Color getPeachPuff()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPeru() {#getPeru--}
```
public static Color getPeru()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPink() {#getPink--}
```
public static Color getPink()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPlum() {#getPlum--}
```
public static Color getPlum()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPowderBlue() {#getPowderBlue--}
```
public static Color getPowderBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getPurple() {#getPurple--}
```
public static Color getPurple()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getRed() {#getRed--}
```
public static Color getRed()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getRosyBrown() {#getRosyBrown--}
```
public static Color getRosyBrown()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getRoyalBlue() {#getRoyalBlue--}
```
public static Color getRoyalBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSaddleBrown() {#getSaddleBrown--}
```
public static Color getSaddleBrown()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSalmon() {#getSalmon--}
```
public static Color getSalmon()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSandyBrown() {#getSandyBrown--}
```
public static Color getSandyBrown()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSeaGreen() {#getSeaGreen--}
```
public static Color getSeaGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSeaShell() {#getSeaShell--}
```
public static Color getSeaShell()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSienna() {#getSienna--}
```
public static Color getSienna()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSilver() {#getSilver--}
```
public static Color getSilver()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSkyBlue() {#getSkyBlue--}
```
public static Color getSkyBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSlateBlue() {#getSlateBlue--}
```
public static Color getSlateBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSlateGray() {#getSlateGray--}
```
public static Color getSlateGray()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSnow() {#getSnow--}
```
public static Color getSnow()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSpringGreen() {#getSpringGreen--}
```
public static Color getSpringGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getSteelBlue() {#getSteelBlue--}
```
public static Color getSteelBlue()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getTan() {#getTan--}
```
public static Color getTan()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getTeal() {#getTeal--}
```
public static Color getTeal()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getThistle() {#getThistle--}
```
public static Color getThistle()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getTomato() {#getTomato--}
```
public static Color getTomato()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getTurquoise() {#getTurquoise--}
```
public static Color getTurquoise()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getViolet() {#getViolet--}
```
public static Color getViolet()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getWheat() {#getWheat--}
```
public static Color getWheat()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getWhite() {#getWhite--}
```
public static Color getWhite()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getWhiteSmoke() {#getWhiteSmoke--}
```
public static Color getWhiteSmoke()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getYellow() {#getYellow--}
```
public static Color getYellow()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### getYellowGreen() {#getYellowGreen--}
```
public static Color getYellowGreen()
```


获取系统定义的颜色。

**Returns:**
[Color](../../com.aspose.imaging/color) - A `com.aspose.imaging.Color` representing a system-defined color.
### op_Equality(Color left, Color right) {#op-Equality-com.aspose.imaging.Color-com.aspose.imaging.Color-}
```
public static boolean op_Equality(Color left, Color right)
```


测试两个指定的 `com.aspose.imaging.Color` 结构是否等价。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| left | [Color](../../com.aspose.imaging/color) | 等号运算符左侧的 `com.aspose.imaging.Color`。 |
| right | [Color](../../com.aspose.imaging/color) | 等号运算符右侧的 `com.aspose.imaging.Color`。 |

**Returns:**
boolean - 如果两个 `com.aspose.imaging.Color` 结构相等，则为 True；否则为 false。
### op_Inequality(Color left, Color right) {#op-Inequality-com.aspose.imaging.Color-com.aspose.imaging.Color-}
```
public static boolean op_Inequality(Color left, Color right)
```


测试两个指定的 `com.aspose.imaging.Color` 结构是否不同。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| left | [Color](../../com.aspose.imaging/color) | 不等于运算符左侧的 `com.aspose.imaging.Color`。 |
| right | [Color](../../com.aspose.imaging/color) | 不等于运算符右侧的 `com.aspose.imaging.Color`。 |

**Returns:**
boolean - 如果两个 `com.aspose.imaging.Color` 结构不同则为 True；否则为 false。
### fromArgb(int argb) {#fromArgb-int-}
```
public static Color fromArgb(int argb)
```


从 32 位 ARGB 值创建一个 `com.aspose.imaging.Color` 结构。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| argb | int | 指定 32 位 ARGB 值的数值。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` structure that this method creates.
### fromArgb(int alpha, int red, int green, int blue) {#fromArgb-int-int-int-int-}
```
public static Color fromArgb(int alpha, int red, int green, int blue)
```


根据四个 ARGB 分量（alpha、red、green 和 blue）的值创建 `com.aspose.imaging.Color` 结构。虽然此方法允许为每个分量传入 32 位值，但每个分量的值仅限于 8 位。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| alpha | int | alpha 分量。有效值范围为 0 到 255。 |
| red | int | red 分量。有效值范围为 0 到 255。 |
| green | int | green 分量。有效值范围为 0 到 255。 |
| blue | int | blue 分量。有效值范围为 0 到 255。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.

**Example: The following example creates a new raster image, saves the specified semi-transparent pixels, then loads those pixels and gets final colors in the premultiplied form.**

``` java
int imageWidth = 3;
int imageHeight = 2;

com.aspose.imaging.Color[] colors = new com.aspose.imaging.Color[]
        {
                com.aspose.imaging.Color.fromArgb(127, 255, 0, 0),
                com.aspose.imaging.Color.fromArgb(127, 0, 255, 0),
                com.aspose.imaging.Color.fromArgb(127, 0, 0, 255),
                com.aspose.imaging.Color.fromArgb(127, 255, 255, 0),
                com.aspose.imaging.Color.fromArgb(127, 255, 0, 255),
                com.aspose.imaging.Color.fromArgb(127, 0, 255, 255),
        };

com.aspose.imaging.imageoptions.PngOptions createOptions = new com.aspose.imaging.imageoptions.PngOptions();
createOptions.setSource(new com.aspose.imaging.sources.StreamSource(new com.aspose.imaging.system.io.MemoryStream(), true));
createOptions.setColorType(com.aspose.imaging.fileformats.png.PngColorType.TruecolorWithAlpha);

com.aspose.imaging.Image image = com.aspose.imaging.Image.create(createOptions, imageWidth, imageHeight);
try {
    com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image;

    // 保存整幅图像的像素。
    rasterImage.savePixels(rasterImage.getBounds(), colors);

    // 像素以非预乘形式存储在原始图像中。
    // 需要显式指定相应的选项以获取预乘颜色分量。
    // 预乘颜色分量通过以下公式计算：
    // red = original_red * alpha / 255;
    // green = original_green * alpha / 255;
    // blue = original_blue * alpha / 255;
    rasterImage.setPremultiplyComponents(true);
    com.aspose.imaging.Color[] premultipliedColors = rasterImage.loadPixels(rasterImage.getBounds());

    for (int i = 0; i < colors.length; i++) {
        System.out.println("Original color: " + colors[i].toString());
        System.out.println("Premultiplied color: " + premultipliedColors[i].toString());
    }
} finally {
    image.dispose();
}
```

### fromArgb(byte alpha, byte red, byte green, byte blue) {#fromArgb-byte-byte-byte-byte-}
```
public static Color fromArgb(byte alpha, byte red, byte green, byte blue)
```


根据四个 ARGB 分量（alpha、red、green 和 blue）的值创建 `com.aspose.imaging.Color` 结构。虽然此方法允许为每个分量传入 32 位值，但每个分量的值仅限于 8 位。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| alpha | byte | alpha 分量。有效值范围为 0 到 255。 |
| red | byte | red 分量。有效值范围为 0 到 255。 |
| green | byte | green 分量。有效值范围为 0 到 255。 |
| blue | byte | blue 分量。有效值范围为 0 到 255。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### fromArgb(int alpha, Color baseColor) {#fromArgb-int-com.aspose.imaging.Color-}
```
public static Color fromArgb(int alpha, Color baseColor)
```


根据指定的 `com.aspose.imaging.Color` 结构创建 `com.aspose.imaging.Color` 结构，但使用新的指定 alpha 值。虽然此方法允许为 alpha 值传入 32 位值，但该值仅限于 8 位。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| alpha | int | 新 `com.aspose.imaging.Color` 的 alpha 值。有效值范围为 0 到 255。 |
| baseColor | [Color](../../com.aspose.imaging/color) | 用于创建新 `com.aspose.imaging.Color` 的 `com.aspose.imaging.Color`。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### fromArgb(int red, int green, int blue) {#fromArgb-int-int-int-}
```
public static Color fromArgb(int red, int green, int blue)
```


从指定的 8 位颜色值（红色、绿色和蓝色）创建一个 `com.aspose.imaging.Color` 结构。Alpha 值隐式为 255（完全不透明）。虽然此方法允许为每个颜色分量传入 32 位值，但每个分量的值限制为 8 位。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| red | int | 新 `com.aspose.imaging.Color` 的红色分量值。有效值范围为 0 到 255。 |
| green | int | 新 `com.aspose.imaging.Color` 的绿色分量值。有效值范围为 0 到 255。 |
| blue | int | 新 `com.aspose.imaging.Color` 的蓝色分量值。有效值范围为 0 到 255。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### fromArgb(byte red, byte green, byte blue) {#fromArgb-byte-byte-byte-}
```
public static Color fromArgb(byte red, byte green, byte blue)
```


从指定的 8 位颜色值（红色、绿色和蓝色）创建一个 `com.aspose.imaging.Color` 结构。Alpha 值隐式为 255（完全不透明）。虽然此方法允许为每个颜色分量传入 32 位值，但每个分量的值限制为 8 位。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| red | byte | 新 `com.aspose.imaging.Color` 的红色分量值。有效值范围为 0 到 255。 |
| green | byte | 新 `com.aspose.imaging.Color` 的绿色分量值。有效值范围为 0 到 255。 |
| blue | byte | 新 `com.aspose.imaging.Color` 的蓝色分量值。有效值范围为 0 到 255。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### fromKnownColor(int color) {#fromKnownColor-int-}
```
public static Color fromKnownColor(int color)
```


从指定的预定义颜色创建一个 `com.aspose.imaging.Color` 结构。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 颜色 | int | `Aspose.Imaging.KnownColor` 枚举的一个元素。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### fromName(String name) {#fromName-java.lang.String-}
```
public static Color fromName(String name)
```


根据指定的预定义颜色名称创建一个 `com.aspose.imaging.Color` 结构。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 名称 | java.lang.String | 一个表示预定义颜色名称的字符串。有效名称与 `Aspose.Imaging.KnownColor` 枚举元素的名称相同。 |

**Returns:**
[Color](../../com.aspose.imaging/color) - The `com.aspose.imaging.Color` that this method creates.
### toCmyk(Color[] pixels) {#toCmyk-com.aspose.imaging.Color---}
```
public static CmykColor[] toCmyk(Color[] pixels)
```


Color 到 CMYKColor 的转换。此方法已弃用。请使用更有效的 [CmykColorHelper.toCmyk(Color[])](../../com.aspose.imaging/cmykcolorhelper\#toCmyk-Color---)。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixels | [Color\[\]](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |

**Returns:**
com.aspose.imaging.CmykColor[] - [CmykColor](../../com.aspose.imaging/cmykcolor) 的数组。
### toCmyk(Color pixel) {#toCmyk-com.aspose.imaging.Color-}
```
public static CmykColor toCmyk(Color pixel)
```


Color 到 CMYKColor 的转换。此方法已弃用。请使用更有效的 [CmykColorHelper.toCmyk(Color)](../../com.aspose.imaging/cmykcolorhelper\#toCmyk-Color-)。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixel | [Color](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |

**Returns:**
[CmykColor](../../com.aspose.imaging/cmykcolor) - The [CmykColor](../../com.aspose.imaging/cmykcolor).
### toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream) {#toCmykIcc-com.aspose.imaging.Color-java.io.InputStream-java.io.InputStream-}
```
public static CmykColor toCmykIcc(Color pixel, InputStream rgbIccStream, InputStream cmykIccStream)
```


使用默认配置文件的 ICC 转换将 Color 转换为 CmykColor。此方法已弃用。请使用更有效的 [CmykColorHelper.toCmykIcc(Color, InputStream, InputStream)](../../com.aspose.imaging/cmykcolorhelper\#toCmykIcc-Color--InputStream--InputStream-)。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixel | [Color](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |
| rgbIccStream | java.io.InputStream | 包含 ICC RGB 配置文件的流。 |
| cmykIccStream | java.io.InputStream | 包含 ICC CMYK 配置文件的流。 |

**Returns:**
[CmykColor](../../com.aspose.imaging/cmykcolor) - The array of [CmykColor](../../com.aspose.imaging/cmykcolor).
### toCmykIcc(Color pixel) {#toCmykIcc-com.aspose.imaging.Color-}
```
public static CmykColor toCmykIcc(Color pixel)
```


使用默认配置文件的 ICC 转换将 Color 转换为 CMYKColor。此方法已弃用。请使用更有效的 `CmykColorHelper.toCmykIcc(Color)`。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixel | [Color](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |

**Returns:**
[CmykColor](../../com.aspose.imaging/cmykcolor) - The [CmykColor](../../com.aspose.imaging/cmykcolor).
### toCmykIcc(Color[] pixels) {#toCmykIcc-com.aspose.imaging.Color---}
```
public static CmykColor[] toCmykIcc(Color[] pixels)
```


使用默认配置文件的 ICC 转换将 Color 转换为 CMYKColor。此方法已弃用。请使用更有效的 `CmykColorHelper.toCmykIcc(Color[])`。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixels | [Color\[\]](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |

**Returns:**
com.aspose.imaging.CmykColor[] - [CmykColor](../../com.aspose.imaging/cmykcolor) 的数组。
### toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream) {#toCmykIcc-com.aspose.imaging.Color---java.io.InputStream-java.io.InputStream-}
```
public static CmykColor[] toCmykIcc(Color[] pixels, InputStream rgbIccStream, InputStream cmykIccStream)
```


使用 ICC 转换将 Color 转换为 CMYKColor。此方法已弃用。请使用更有效的 `CmykColorHelper.toCmykIcc(Color[], InputStream, InputStream)`。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| pixels | [Color\[\]](../../com.aspose.imaging/color) | RGB 格式的 Color 类型像素。 |
| rgbIccStream | java.io.InputStream | 包含 ICC RGB 配置文件的流。 |
| cmykIccStream | java.io.InputStream | 包含 ICC CMYK 配置文件的流。 |

**Returns:**
com.aspose.imaging.CmykColor[] - [CmykColor](../../com.aspose.imaging/cmykcolor) 的数组。
### isEquals(Color obj1, Color obj2) {#isEquals-com.aspose.imaging.Color-com.aspose.imaging.Color-}
```
public static boolean isEquals(Color obj1, Color obj2)
```




**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj1 | [Color](../../com.aspose.imaging/color) |  |
| obj2 | [Color](../../com.aspose.imaging/color) |  |

**Returns:**
boolean
### getR() {#getR--}
```
public byte getR()
```


获取此 `com.aspose.imaging.Color` 结构的红色分量值。

**Returns:**
byte - 此 `com.aspose.imaging.Color` 的红色分量值。
### getG() {#getG--}
```
public byte getG()
```


获取此 `com.aspose.imaging.Color` 结构的绿色分量值。

**Returns:**
byte - 此 `com.aspose.imaging.Color` 的绿色分量值。
### getB() {#getB--}
```
public byte getB()
```


获取此 `com.aspose.imaging.Color` 结构的蓝色分量值。

**Returns:**
byte - 此 `com.aspose.imaging.Color` 的蓝色分量值。
### getA() {#getA--}
```
public byte getA()
```


获取此 `com.aspose.imaging.Color` 结构的 alpha 分量值。

**Returns:**
byte - 此 `com.aspose.imaging.Color` 的 Alpha 分量值。
### isKnownColor() {#isKnownColor--}
```
public boolean isKnownColor()
```


获取一个值，指示此 `com.aspose.imaging.Color` 结构是否为预定义颜色。预定义颜色由 `Aspose.Imaging.KnownColor` 枚举的元素表示。

**Returns:**
boolean - 如果此 `com.aspose.imaging.Color` 是通过使用 `Aspose.Imaging.Color.FromName(String)` 方法或 `Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)` 方法从预定义颜色创建的，则为 true；否则为 false。
### isEmpty() {#isEmpty--}
```
public boolean isEmpty()
```


获取一个值，指示此 `com.aspose.imaging.Color` 结构是否未初始化。

**Returns:**
boolean - 如果此颜色未初始化，则此属性返回 true；否则返回 false。
### isNamedColor() {#isNamedColor--}
```
public boolean isNamedColor()
```


获取一个值，指示此 `com.aspose.imaging.Color` 结构是命名颜色还是 `Aspose.Imaging.KnownColor` 枚举的成员。

**Returns:**
boolean - 如果此 `com.aspose.imaging.Color` 是通过使用 `Aspose.Imaging.Color.FromName(String)` 方法或 `Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)` 方法创建的，则为 True；否则为 false。
### getName() {#getName--}
```
public String getName()
```


获取此 `com.aspose.imaging.Color` 的名称。

**Returns:**
java.lang.String - 此 `com.aspose.imaging.Color` 的名称。
### getBrightness() {#getBrightness--}
```
public float getBrightness()
```


获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 亮度值。

**Returns:**
float - 此 `com.aspose.imaging.Color` 的亮度。亮度范围从 0.0 到 1.0，其中 0.0 表示黑色，1.0 表示白色。
### getHue() {#getHue--}
```
public float getHue()
```


获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 色相值（以度为单位）。

**Returns:**
float - 此 `com.aspose.imaging.Color` 的色相（以度为单位）。色相以度为单位测量，范围从 0.0 到 360.0，使用 HSB 颜色空间。
### getSaturation() {#getSaturation--}
```
public float getSaturation()
```


获取此 `com.aspose.imaging.Color` 结构的色相-饱和度-亮度 (HSB) 饱和度值。

**Returns:**
float - 此 `com.aspose.imaging.Color` 的饱和度。饱和度范围从 0.0 到 1.0，其中 0.0 为灰度，1.0 为最高饱和度。
### toArgb() {#toArgb--}
```
public int toArgb()
```


获取此 `com.aspose.imaging.Color` 结构的 32 位 ARGB 值。

**Returns:**
int - 此 `com.aspose.imaging.Color` 的 32 位 ARGB 值。
### toKnownColor() {#toKnownColor--}
```
public int toKnownColor()
```


获取此 `com.aspose.imaging.Color` 结构的 `Aspose.Imaging.KnownColor` 值。

**Returns:**
int - `Aspose.Imaging.KnownColor` 枚举的一个元素，如果 `com.aspose.imaging.Color` 是通过使用 `Aspose.Imaging.Color.FromName(String)` 方法或 `Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)` 方法从预定义颜色创建的；否则为 0。
### toString() {#toString--}
```
public String toString()
```


将此 `com.aspose.imaging.Color` 结构转换为可读的字符串。

**Returns:**
java.lang.String - 一个字符串，表示此 `com.aspose.imaging.Color` 的名称，如果 `com.aspose.imaging.Color` 是通过使用 `Aspose.Imaging.Color.FromName(String)` 方法或 `Aspose.Imaging.Color.FromKnownColor(Aspose.Imaging.KnownColor)` 方法从预定义颜色创建的；否则为由 ARGB 组件名称及其数值组成的字符串。
### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


测试指定的对象是否为 `com.aspose.imaging.Color` 结构且等价于此 `com.aspose.imaging.Color` 结构。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj | java.lang.Object | 要测试的对象。 |

**Returns:**
boolean - 如果 `obj` 是等价于此 `com.aspose.imaging.Color` 结构的 `com.aspose.imaging.Color` 结构，则为 True；否则为 false。
### hashCode() {#hashCode--}
```
public int hashCode()
```


返回此 `com.aspose.imaging.Color` 结构的哈希码。

**Returns:**
int - 指定此 `com.aspose.imaging.Color` 的哈希码的整数值。
### CloneTo(Color that) {#CloneTo-com.aspose.imaging.Color-}
```
public void CloneTo(Color that)
```




**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| that | [Color](../../com.aspose.imaging/color) |  |

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




**Returns:**
[Color](../../com.aspose.imaging/color)
