Edit

Share via


ColorTranslator Class

Definition

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

public static class ColorTranslator
public sealed class ColorTranslator
Inheritance
ColorTranslator

Methods

FromHtml(String)

Translates an HTML color representation to a GDI+ Color structure.

FromOle(Int32)

Translates an OLE color value to a GDI+ Color structure.

FromWin32(Int32)

Translates a Windows color value to a GDI+ Color structure.

ToHtml(Color)

Translates the specified Color structure to an HTML string color representation.

ToOle(Color)

Translates the specified Color structure to an OLE color.

ToWin32(Color)

Translates the specified Color structure to a Windows color.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)