
**Summary:** Translates colors to and from GDI+ Color structures. This class cannot be inherited.

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

**Full Name:** aspose.imaging.ColorTranslator

## **Methods**
| **Name** | **Açıklama** |
| :- | :- |
| [from_html(html_color)](#from_html_html_color_1) | HTML renginden rengi alır. |
| [from_ole(ole_color)](#from_ole_ole_color_2) | OLE renginden rengi alır. |
| [from_win32(win_32_color)](#from_win32_win_32_color_3) | HTML renginden rengi alır. |
| [to_html(c)](#to_html_c_4) | Renkten HTML rengi oluşturur. |
| [to_ole(c)](#to_ole_c_5) | OLE rengini renge çevirir. |
| [to_win32(c)](#to_win32_c_6) | Rengi win32 rengine dönüştürür. |


### Method: from_html(html_color)  [static] {#from_html_html_color_1}


```
 from_html(html_color) 
```

HTML renginden rengi alır.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| html_color | string | HTML rengi. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | Renk. |


### Method: from_ole(ole_color)  [static] {#from_ole_ole_color_2}


```
 from_ole(ole_color) 
```

OLE renginden rengi alır.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| ole_color | int | OLE rengi. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | Renk. |


### Method: from_win32(win_32_color)  [static] {#from_win32_win_32_color_3}


```
 from_win32(win_32_color) 
```

HTML renginden rengi alır.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| win_32_color | int | Win32 rengi. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| [Color](/imaging/python-net/aspose.imaging/color/) | Renk. |


### Method: to_html(c)  [static] {#to_html_c_4}


```
 to_html(c) 
```

Renkten HTML rengi oluşturur.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| c | [Color](/imaging/python-net/aspose.imaging/color/) | Renk sınıfı. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| string | HTML dize rengi. |


### Method: to_ole(c)  [static] {#to_ole_c_5}


```
 to_ole(c) 
```

OLE rengini renge çevirir.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| c | [Color](/imaging/python-net/aspose.imaging/color/) | Renk. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| int | OLE rengi. |


### Method: to_win32(c)  [static] {#to_win32_c_6}


```
 to_win32(c) 
```

Rengi win32 rengine dönüştürür.

**Parameters:**

| Parameter | Tür | Açıklama |
| :- | :- | :- |
| c | [Color](/imaging/python-net/aspose.imaging/color/) | Renk. |

**Returns**

| Tür | Açıklama |
| :- | :- |
| int | Win32 rengi. |


