public final class ColorTranslator extends Object
Translates colors to and from GDI+ Color structures. This class cannot be inherited.
Modifier and Type | Method and Description |
---|---|
static Color |
fromHtml(String htmlColor)
Takes color from the HTML color.
|
static Color |
fromOle(int oleColor)
Takes color from the OLE color.
|
static Color |
fromWin32(int win32Color)
Takes color from the HTML color.
|
static String |
toHtml(Color c)
Creates HTML color from the color.
|
static int |
toOle(Color c)
Translates OLE color to color.
|
static int |
toWin32(Color c)
Translates the color to win32 color.
|
public static Color fromHtml(String htmlColor)
Takes color from the HTML color.
htmlColor
- HTML color.public static Color fromOle(int oleColor)
Takes color from the OLE color.
oleColor
- OLE color.public static Color fromWin32(int win32Color)
Takes color from the HTML color.
win32Color
- Win32 color.public static String toHtml(Color c)
Creates HTML color from the color.
c
- The color class.public static int toOle(Color c)
Translates OLE color to color.
c
- The color.public static int toWin32(Color c)
Translates the color to win32 color.
c
- The color.