Enum ColorHexFormat
- Namespace
- SixLabors.ImageSharp
- Assembly
- SixLabors.ImageSharp.dll
Specifies the channel order when formatting or parsing a color as a hexadecimal string.
public enum ColorHexFormat
Fields
Argb = 1Uses
AARRGGBBchannel order where the alpha component comes first, followed by the red, green, and blue components. This matches the Microsoft/XAML convention.When parsing, supports the following formats:
#ARGBexpands toAARRGGBB#AARRGGBBused as-is
When formatting, outputs an 8-digit hex string in
AARRGGBBorder.Rgba = 0Uses
RRGGBBAAchannel order where the red, green, and blue components come first, followed by the alpha component. This matches the CSS Color Module Level 4 and common web standards.When parsing, supports the following formats:
#RGBexpands toRRGGBBFF(fully opaque)#RGBAexpands toRRGGBBAA#RRGGBBexpands toRRGGBBFF(fully opaque)#RRGGBBAAused as-is
When formatting, outputs an 8-digit hex string in
RRGGBBAAorder.