ColorTranslator

ColorTranslator class

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

public sealed class ColorTranslator

Constructors

Name Description
ColorTranslator() The default constructor.

Methods

Name Description
static FromHtml(string) Translates an HTML color representation to a GDI+ Color structure.
static FromOle(int) Translates an OLE color value to a GDI+ Color structure.
static FromWin32(int) Translates a Windows color value to a GDI+ Color structure.
static ToHtml(Color) Translates the specified Color structure to an HTML string color representation.
static ToOle(Color) Converts Color structure to OLE presentation of color.
static ToWin32(Color) Converts Color structure to Win32 presentation of color.

See Also