Available also on: Delphi | .NET | Java | ActiveX.
Platform independent color type with ARGB storage, channel accessors, predefined colors, and color-space conversion helpers.
# Python class TGIS_Color:
| Name | Visibility | Description | |
|---|---|---|---|
| FromABGR | public | Creates a transparent color using the ABGR color model. | |
| FromACMYK | public | Creates a transparent color using the CMYK color model. | |
| FromAHCL | public | Creates a transparent color using the HCL color model. | |
| FromAHSL | public | Creates a transparent color using the HSL (Hue, Saturation, Lightness) color model. | |
| FromAHSV | public | Creates a transparent color using the HSV color model. | |
| FromARGB(int) | public | Creates a transparent color using the ARGB color model. | |
| FromARGB(int, int, int, int) | public | Creates a transparent color using the RGB color model. | |
| FromBGR(int) | public | Creates a color using the BGR color model. | |
| FromBGR(int, int, int) | public | Creates a color using the BGR color model. | |
| FromCMYK | public | Creates a color using the CMYK color model. | |
| FromHCL | public | Creates a color using the HCL color model. | |
| FromHSL | public | Creates a color using the HSL (Hue, Saturation, Lightness) color model. | |
| FromHSV | public | Creates a color using the HSV color model. | |
| FromRGB(int) | public | Creates a color using the RGB color model. | |
| FromRGB(int, int, int) | public | Creates a color using the RGB color model. | |
| FromString | public | Creates a color from a CSS-style string representation. | |
| ToABGR | public | Converts a color to an integer in the ABGR form. | |
| ToACMYK | public | Retrieves the alpha (A), cyan (C), magenta (M), yellow (Y), and black (K) components of the current color. | |
| ToAHCL | public | Retrieves the alpha (A), hue (H), chroma (C) and luminance (L) components of the current color. | |
| ToAHSL | public | Retrieves the alpha (A), hue (H), saturation (S) and lightness (L) components of the current color. | |
| ToAHSV | public | Retrieves the alpha (A), hue (H), saturation (S) and value (V) components of the current color. | |
| ToARGB | public | Converts a color to an integer in the ARGB form. | |
| ToBGR | public | Converts the color to a packed integer in BGR format. | |
| ToCMYK | public | Retrieves the cyan (C), magenta (M), yellow (Y), and black (K) components of the current color. | |
| ToHCL | public | Retrieves the hue (H), chroma (C), and luminance (L) components of the current color. | |
| ToHSL | public | Retrieves the hue (H), saturation (S) and lightness (L) components of the current color. | |
| ToHSV | public | Retrieves the hue (H), saturation (S) and value (V) components of the current color. | |
| ToRGB | public | Converts the color to a packed integer in RGB format. | |
| ToString | public | Converts the color to a hexadecimal string. | |
| TryFromString | public | Tries to create a color from a CSS-style string representation. | |
| Name | Visibility | Description | |
|---|---|---|---|
| A | public | Gets the alpha channel from the ARGB color value. | |
| ARGB | public | Internal color value stored as a little endian ARGB integer. | |
| B | public | Gets the blue channel from the ARGB color value. | |
| G | public | Gets the green channel from the ARGB color value. | |
| H | public | Gets the hue component from the HSL color representation. | |
| L | public | Gets the lightness component from the HSL color representation. | |
| R | public | Gets the red channel from the ARGB color value. | |
| S | public | Gets the saturation component from the HSL color representation. | |