ColorTranslator Class

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

Module: aspose.imaging

Full Name: aspose.imaging.ColorTranslator

Methods

NameDescription
from_html(html_color)Takes color from the HTML color.
from_ole(ole_color)Takes color from the OLE color.
from_win32(win_32_color)Takes color from the HTML color.
to_html(c)Creates HTML color from the color.
to_ole(c)Translates OLE color to color.
to_win32(c)Translates the color to win32 color.

Method: from_html(html_color) [static]

 from_html(html_color) 

Takes color from the HTML color.

Parameters:

ParameterTypeDescription
html_colorstringHTML color.

Returns

TypeDescription
ColorThe color.

Method: from_ole(ole_color) [static]

 from_ole(ole_color) 

Takes color from the OLE color.

Parameters:

ParameterTypeDescription
ole_colorintOLE color.

Returns

TypeDescription
ColorThe color.

Method: from_win32(win_32_color) [static]

 from_win32(win_32_color) 

Takes color from the HTML color.

Parameters:

ParameterTypeDescription
win_32_colorintWin32 color.

Returns

TypeDescription
ColorThe color.

Method: to_html(c) [static]

 to_html(c) 

Creates HTML color from the color.

Parameters:

ParameterTypeDescription
cColorThe color class.

Returns

TypeDescription
stringThe html string color.

Method: to_ole(c) [static]

 to_ole(c) 

Translates OLE color to color.

Parameters:

ParameterTypeDescription
cColorThe color.

Returns

TypeDescription
intThe OLE color.

Method: to_win32(c) [static]

 to_win32(c) 

Translates the color to win32 color.

Parameters:

ParameterTypeDescription
cColorThe color.

Returns

TypeDescription
intThe win32 color.