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

The `Color` extension methods.
## Methods

| Method | Description |
| --- | --- |
| [toGdiColor(Color color)](#toGdiColor-com.aspose.imaging.Color-) | Converts the `com.aspose.imaging.Color` to the `System.Drawing.Color`. |
| [toGdiColors(Color[] colors)](#toGdiColors-com.aspose.imaging.Color---) | Converts the `com.aspose.imaging.Color` array to the `System.Drawing.Color` array. |
### toGdiColor(Color color) {#toGdiColor-com.aspose.imaging.Color-}
```
public static Color toGdiColor(Color color)
```


Converts the `com.aspose.imaging.Color` to the `System.Drawing.Color`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | [Color](../../com.aspose.imaging/color) | The`com.aspose.imaging.Color` to convert. |

**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)
```


Converts the `com.aspose.imaging.Color` array to the `System.Drawing.Color` array.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| colors | [Color\[\]](../../com.aspose.imaging/color) | The`com.aspose.imaging.Color` array to convert. |

**Returns:**
com.aspose.ms.System.Drawing.Color[] - The converted `System.Drawing.Color` array.
