Hex
Static Class in Zigurous.ColorPro
Declaration
public static class HexDescription
Functions for converting between hexadecimal and RGB color values.
Extension Methods
| ToHex | Converts the color to a hexadecimal integer in the RGB format (RRGGBB), e.g., 0xffff00. |
| ToHexRGBA | Converts the color to a hexadecimal integer in the RGBA format (RRGGBBAA), e.g., 0xffff0080. |
| ToHexARGB | Converts the color to a hexadecimal integer in the ARGB format (AARRGGBB), e.g., 0x80ffff00. |
| ToHexString | Converts the color to a hexadecimal string in the RGB format (RRGGBB), e.g., "#ffff00". |
| ToHexStringRGBA | Converts the color to a hexadecimal string in the RGBA format (RRGGBBAA), e.g., "#ffff0080". |
| ToHexStringARGB | Converts the color to a hexadecimal string in the ARGB format (AARRGGBB), e.g., "#80ffff00". |
Static Methods
| ToColor | Creates a color from a hexadecimal integer in the RGB format (RRGGBB), e.g., 0xffff00. |
| ToRGBAColor | Creates a color from a hexadecimal integer in the RGBA format (RRGGBBAA), e.g., 0xffff0080. |
| ToARGBColor | Creates a color from a hexadecimal integer in the ARGB format (AARRGGBB), e.g., 0x80ffff00. |
| ToInt | Converts a hex string to a 32-bit integer in base 16. |