GraphicsColorToWebColor Method

Converts .Net Color to Web Color. Method created, because .Net Compact Framework 2.0 doesn't support System.Drawing.ColorTranslator class.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.2.0
C#
public static string ColorToWebColor(
	Color color
)

Parameters

color  Color
Input Color.

Return Value

String
String represents a Web Color.

See Also