Axo |
[SerializableAttribute] public struct AxoColor : IEquatable<AxoColor>
The AxoColor type exposes the following members.
| Name | Description | |
|---|---|---|
| A | Gets or sets the alpha component in ARGB space. | |
| B | Gets or sets the blue component in ARGB space. | |
| G | Gets or sets the green component in ARGB space. | |
| IsFromArgb | Gets or sets a value indicating whether this color was created from ARGB values. | |
| R | Gets or sets the red component in ARGB space. | |
| ScA | Gets or sets the alpha component in linear scRGB space. | |
| ScB | Gets or sets the blue component in linear scRGB space. | |
| ScG | Gets or sets the green component in linear scRGB space. | |
| ScR | Gets or sets the red component in linear scRGB space. |
| Name | Description | |
|---|---|---|
| ByteToNormFloat | Converts a byte value to a normalized floating-point value. | |
| Equals(AxoColor) | Indicates whether the current object is equal to another object of the same type. | |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object)) | |
| FromAcmyk | Provides a quick and dirty conversion from the CMYK color model to an AxoColor. No color conversion profile is used here! | |
| FromAhsb | Creates a color from alpha, hue, saturation and brightness (AHSB model). | |
| FromAhsl | Creates a Color from alpha, hue, saturation and lightness (AHSL model). | |
| FromArgb | Creates a color from ARGB components. | |
| FromHue | Creates a fully saturated bright color from hue, returning gamma corrected components R, G, and B. | |
| FromInvariantString | Creates a color from its invariant string representation. | |
| FromScRgb | Creates a color from linear scRGB components. | |
| GammaCorrectedFromLinear | Convert from linear SRGB to gamma corrected values, see wikipedia (SRGB). | |
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode) | |
| GetHue | Gets the hue value of the color. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HsbFromLinearRgb | Converts the linear Rgb components to the AHSB model, with Hue [0, 1], Saturation [0, 1] and Brightness [0, 1]. | |
| LinearFromGammaCorrected | Conversion to linear SRGB, see wikipedia (SRGB). | |
| LinearRgbFromHsb | Creates a Color from alpha, hue, saturation and brightness (AHSB model). | |
| LinearRgbFromHsl | Converts Hsl (Hue, Saturation, Lightness) values (all values in the range [0, 1] into the linear Rgb space. | |
| NormFloatToByte | Converts a normalized floating-point value to a byte. | |
| ToAcmyk | Provides a quick and dirty conversion from an AxoColor to the CMYK model. No color conversion profile is used here! | |
| ToAhsb | Converts the color to the linear AHSB model, with alpha [0, 1], Hue [0, 1], Saturation [0, 1] and Brightness [0, 1]. | |
| ToAlphaValue(Byte) | Returns a copy of this color with the specified alpha value. | |
| ToAlphaValue(AxoColor, Byte) | Returns a copy of the specified color with the specified alpha value. | |
| ToArgb | Converts this color to a packed ARGB integer value. | |
| ToFullyOpaque | Returns a fully opaque version of this color. | |
| ToFullyOpaque(AxoColor) | Returns a fully opaque version of the specified color. | |
| ToInvariantString | Converts this color to an invariant string representation. | |
| ToScARGBFromIARGB | Converts a color in given as ARGB integer into the linear SC ARGB space. | |
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString) |
| Name | Description | |
|---|---|---|
| Equality(AxoColor, AxoColor) | Determines whether two colors are equal. | |
| (AxoColor to Color) | Converts an AxoColor to a GDI color. | |
| Inequality(AxoColor, AxoColor) | Determines whether two colors are not equal. |