Classe ColorTranslator
Summary: Translates colors to and from GDI+ Color structures. This class cannot be inherited.
Module: aspose.imaging
Full Name: aspose.imaging.ColorTranslator
Methods
| Name | Descrizione |
|---|---|
| from_html(html_color) | Prende il colore dal colore HTML. |
| from_ole(ole_color) | Prende il colore dal colore OLE. |
| from_win32(win_32_color) | Prende il colore dal colore HTML. |
| to_html(c) | Crea il colore HTML dal colore. |
| to_ole(c) | Traduce il colore OLE in colore. |
| to_win32(c) | Converte il colore in colore win32. |
Method: from_html(html_color) [static]
from_html(html_color)
Prende il colore dal colore HTML.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| html_color | string | Colore HTML. |
Returns
| Tipo | Descrizione |
|---|---|
| Color | Il colore. |
Method: from_ole(ole_color) [static]
from_ole(ole_color)
Prende il colore dal colore OLE.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| ole_color | int | Colore OLE. |
Returns
| Tipo | Descrizione |
|---|---|
| Color | Il colore. |
Method: from_win32(win_32_color) [static]
from_win32(win_32_color)
Prende il colore dal colore HTML.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| win_32_color | int | Colore Win32. |
Returns
| Tipo | Descrizione |
|---|---|
| Color | Il colore. |
Method: to_html(c) [static]
to_html(c)
Crea il colore HTML dal colore.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| c | Color | La classe colore. |
Returns
| Tipo | Descrizione |
|---|---|
| string | Il colore della stringa HTML. |
Method: to_ole(c) [static]
to_ole(c)
Traduce il colore OLE in colore.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| c | Color | Il colore. |
Returns
| Tipo | Descrizione |
|---|---|
| int | Il colore OLE. |
Method: to_win32(c) [static]
to_win32(c)
Converte il colore in colore win32.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| c | Color | Il colore. |
Returns
| Tipo | Descrizione |
|---|---|
| int | Il colore Win32. |