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描述
from_html(html_color)从 HTML 颜色获取颜色。
from_ole(ole_color)从 OLE 颜色获取颜色。
from_win32(win_32_color)从 HTML 颜色获取颜色。
to_html(c)从颜色创建 HTML 颜色。
to_ole(c)将 OLE 颜色转换为颜色。
to_win32(c)将颜色转换为 win32 颜色。

Method: from_html(html_color) [static]

 from_html(html_color) 

从 HTML 颜色获取颜色。

Parameters:

参数TypeDescription
html_colorstringHTML 颜色。

Returns

TypeDescription
Color该颜色。

Method: from_ole(ole_color) [static]

 from_ole(ole_color) 

从 OLE 颜色获取颜色。

Parameters:

参数TypeDescription
ole_colorintOLE 颜色。

Returns

TypeDescription
Color该颜色。

Method: from_win32(win_32_color) [static]

 from_win32(win_32_color) 

从 HTML 颜色获取颜色。

Parameters:

参数TypeDescription
win_32_colorintWin32 颜色。

Returns

TypeDescription
Color该颜色。

Method: to_html(c) [static]

 to_html(c) 

从颜色创建 HTML 颜色。

Parameters:

参数TypeDescription
cColor颜色类。

Returns

TypeDescription
stringHTML 字符串颜色。

Method: to_ole(c) [static]

 to_ole(c) 

将 OLE 颜色转换为颜色。

Parameters:

参数TypeDescription
cColor该颜色。

Returns

TypeDescription
intOLE 颜色。

Method: to_win32(c) [static]

 to_win32(c) 

将颜色转换为 win32 颜色。

Parameters:

参数TypeDescription
cColor该颜色。

Returns

TypeDescription
intWin32 颜色。