ColorTranslator-klass
Summary: Translates colors to and from GDI+ Color structures. This class cannot be inherited.
Module: aspose.imaging
Full Name: aspose.imaging.ColorTranslator
Methods
| Name | Description |
|---|---|
| from_html(html_color) | Tar färg från HTML-färgen. |
| from_ole(ole_color) | Tar färg från OLE-färgen. |
| from_win32(win_32_color) | Tar färg från HTML-färgen. |
| to_html(c) | Skapar HTML-färg från färgen. |
| to_ole(c) | Översätter OLE-färg till färg. |
| to_win32(c) | Översätter färgen till win32-färg. |
Method: from_html(html_color) [static]
from_html(html_color)
Tar färg från HTML-färgen.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| html_color | string | HTML-färg. |
Returns
| Typ | Beskrivning |
|---|---|
| Color | Färgen. |
Method: from_ole(ole_color) [static]
from_ole(ole_color)
Tar färg från OLE-färgen.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| ole_color | int | OLE-färg. |
Returns
| Typ | Beskrivning |
|---|---|
| Color | Färgen. |
Method: from_win32(win_32_color) [static]
from_win32(win_32_color)
Tar färg från HTML-färgen.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| win_32_color | int | Win32-färg. |
Returns
| Typ | Beskrivning |
|---|---|
| Color | Färgen. |
Method: to_html(c) [static]
to_html(c)
Skapar HTML-färg från färgen.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| c | Color | Färgklassen. |
Returns
| Typ | Beskrivning |
|---|---|
| string | html-strängfärgen. |
Method: to_ole(c) [static]
to_ole(c)
Översätter OLE-färg till färg.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| c | Color | Färgen. |
Returns
| Typ | Beskrivning |
|---|---|
| int | OLE-färgen. |
Method: to_win32(c) [static]
to_win32(c)
Översätter färgen till win32-färg.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| c | Color | Färgen. |
Returns
| Typ | Beskrivning |
|---|---|
| int | win32-färgen. |