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

De `Color`‑utökningsmetoderna.
## Metoder

| Metod | Beskrivning |
| --- | --- |
| [toGdiColor(Color color)](#toGdiColor-com.aspose.imaging.Color-) | Konverterar `com.aspose.imaging.Color` till `System.Drawing.Color`. |
| [toGdiColors(Color[] colors)](#toGdiColors-com.aspose.imaging.Color---) | Konverterar `com.aspose.imaging.Color`‑arrayen till `System.Drawing.Color`‑arrayen. |
### toGdiColor(Color color) {#toGdiColor-com.aspose.imaging.Color-}
```
public static Color toGdiColor(Color color)
```


Konverterar `com.aspose.imaging.Color` till `System.Drawing.Color`.

**Parameters:**
| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| color | [Color](../../com.aspose.imaging/color) | Den `com.aspose.imaging.Color` att konvertera. |

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


Konverterar `com.aspose.imaging.Color`‑arrayen till `System.Drawing.Color`‑arrayen.

**Parameters:**
| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| colors | [Color\[\]](../../com.aspose.imaging/color) | Den `com.aspose.imaging.Color`‑arrayen att konvertera. |

**Returns:**
com.aspose.ms.System.Drawing.Color[] - Den konverterade `System.Drawing.Color`‑arrayen.
