Click or drag to resize

ColorToHex Method

Converts this color to a hex representation

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public string ToHex(
	bool includeAlpha = true


includeAlpha (Optional)
Type: SystemBoolean
True to include the alpha component, false to exclude it

Return Value

Type: String
A hex representation of this color, with 8 digits if includeAlpha is true, or 6 digits if false
This will either return a hex value with 8 digits (two per component), or 6 digits (two per RGB) if the includeAlpha is set to false.
See Also