| Constructor and Description |
|---|
ColorTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static Color |
fromHtml(String htmlColor)
Translates an HTML color representation to a GDI+
Color structure. |
static Color |
fromOle(int oleColor)
Translates an OLE color value to a GDI+
Color structure. |
static Color |
fromWin32(int win32Color)
Translates a Windows color value to a GDI+
Color structure. |
static String |
toHtml(Color c)
Translates the specified
Color structure to an HTML string color representation. |
static int |
toOle(Color c)
Converts
Color structure to OLE presentation of color. |
static int |
toWin32(Color c)
Converts
Color structure to Win32 presentation of color. |
public static Color fromHtml(String htmlColor)
Translates an HTML color representation to a GDI+ Color structure.
htmlColor - The string representation of the Html color to translate.Color structure that represents the translated HTML color or Empty if htmlColor is null.public static String toHtml(Color c)
Translates the specified Color structure to an HTML string color representation.
c - The Color structure to translate.public static Color fromWin32(int win32Color)
Translates a Windows color value to a GDI+ Color structure.
win32Color - The Windows color to translate.Color structure that represents the translated Windows color.public static Color fromOle(int oleColor)
Translates an OLE color value to a GDI+ Color structure.
oleColor - The OLE color to translate.Color structure that represents the translated OLE color.public static int toWin32(Color c)
Converts Color structure to Win32 presentation of color.
c - Color structure to convert.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.