Click or drag to resize

ColorUtilsToHex Method

Converts the given color to its equivalent hex color in the form of #RRGGBBAA (eg. #000000FF for opaque black).

Namespace:  Archon.SwissArmyLib.Utils
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static string ToHex(
	this Color color
)
Request Example View Source

Parameters

color
Type: Color
The color to convert.

Return Value

Type: String
The hex representation of color.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Color. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also