**Inheritance:**
java.lang.Object
```
public final class ColorExtensions
```

该 `Color` 扩展方法。
## 方法

| 方法 | 描述 |
| --- | --- |
| [toGdiColor(Color color)](#toGdiColor-com.aspose.imaging.Color-) | 将 `com.aspose.imaging.Color` 转换为 `System.Drawing.Color`。 |
| [toGdiColors(Color[] colors)](#toGdiColors-com.aspose.imaging.Color---) | 将 `com.aspose.imaging.Color` 数组转换为 `System.Drawing.Color` 数组。 |
### toGdiColor(Color color) {#toGdiColor-com.aspose.imaging.Color-}
```
public static Color toGdiColor(Color color)
```


将 `com.aspose.imaging.Color` 转换为 `System.Drawing.Color`。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| color | [Color](../../com.aspose.imaging/color) | 该`com.aspose.imaging.Color`进行转换。 |

**Returns:**
[Color](../../java.awt/color) - The converted `System.Drawing.Color`.
### toGdiColors(Color[] colors) {#toGdiColors-com.aspose.imaging.Color---}
```
public static System.Drawing.Color[] toGdiColors(Color[] colors)
```


将 `com.aspose.imaging.Color` 数组转换为 `System.Drawing.Color` 数组。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| colors | [Color\[\]](../../com.aspose.imaging/color) | 该`com.aspose.imaging.Color`数组进行转换。 |

**Returns:**
com.aspose.ms.System.Drawing.Color[] - 已转换的 `System.Drawing.Color` 数组。
