
**Summary:** The [Color](/psd/python-net/aspose.psd/color/) extension methods.

**Module:** [aspose.psd.extensions](/psd/python-net/aspose.psd.extensions/)

**Full Name:** aspose.psd.extensions.ColorExtensions

**Aspose.PSD Version:** 24.12.0

## **Methods**
| **Name** | **Description** |
| :- | :- |
| [to_gdi_color(color)](#to_gdi_color_color_1) | Converts the [Color](/psd/python-net/aspose.psd/color/) to the aspose.pydrawing.Color. |
| [to_gdi_colors(colors)](#to_gdi_colors_colors_2) | Converts the [Color](/psd/python-net/aspose.psd/color/) array to the aspose.pydrawing.Color array. |


### Method: to_gdi_color(color)  [static] {#to_gdi_color_color_1}


```
 to_gdi_color(color) 
```

Converts the [Color](/psd/python-net/aspose.psd/color/) to the aspose.pydrawing.Color.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| color | [Color](/psd/python-net/aspose.psd/color) | The[Color](/psd/python-net/aspose.psd/color/) to convert. |

**Returns**

| Type | Description |
| :- | :- |
| System.Drawing.Color | The converted aspose.pydrawing.Color. |


### Method: to_gdi_colors(colors)  [static] {#to_gdi_colors_colors_2}


```
 to_gdi_colors(colors) 
```

Converts the [Color](/psd/python-net/aspose.psd/color/) array to the aspose.pydrawing.Color array.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| colors | [Color[]](/psd/python-net/aspose.psd/color) | The[Color](/psd/python-net/aspose.psd/color/) array to convert. |

**Returns**

| Type | Description |
| :- | :- |
| System.Drawing.Color | The converted aspose.pydrawing.Color array. |


