Class ColorTranslator
Translates colors to and from GDI+ Color structures. This class cannot be inherited.
public sealed class ColorTranslator
- Inheritance
-
ColorTranslator
- Inherited Members
Methods
FromHtml(string)
Takes color from the HTML color.
public static Color FromHtml(string htmlColor)
Parameters
htmlColor
stringHTML color.
Returns
- Color
The color.
FromOle(int)
Takes color from the OLE color.
public static Color FromOle(int oleColor)
Parameters
oleColor
intOLE color.
Returns
- Color
The color.
FromWin32(int)
Takes color from the HTML color.
public static Color FromWin32(int win32Color)
Parameters
win32Color
intWin32 color.
Returns
- Color
The color.
ToHtml(Color)
Creates HTML color from the color.
public static string ToHtml(Color c)
Parameters
c
ColorThe color class.
Returns
- string
The html string color.
ToOle(Color)
Translates OLE color to color.
public static int ToOle(Color c)
Parameters
c
ColorThe color.
Returns
- int
The OLE color.
ToWin32(Color)
Translates the color to win32 color.
public static int ToWin32(Color c)
Parameters
c
ColorThe color.
Returns
- int
The win32 color.