Click or drag to resize

AxoColor Structure

Represents a color in both ARGB and linear scRGB form.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.DrawingAxoColor

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
public struct AxoColor : IEquatable<AxoColor>

The AxoColor type exposes the following members.

Properties
 NameDescription
Public propertyA Gets or sets the alpha component in ARGB space.
Public propertyB Gets or sets the blue component in ARGB space.
Public propertyG Gets or sets the green component in ARGB space.
Public propertyIsFromArgb Gets or sets a value indicating whether this color was created from ARGB values.
Public propertyR Gets or sets the red component in ARGB space.
Public propertyScA Gets or sets the alpha component in linear scRGB space.
Public propertyScB Gets or sets the blue component in linear scRGB space.
Public propertyScG Gets or sets the green component in linear scRGB space.
Public propertyScR Gets or sets the red component in linear scRGB space.
Top
Methods
 NameDescription
Public methodStatic memberByteToNormFloat Converts a byte value to a normalized floating-point value.
Public methodEquals(AxoColor)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodStatic memberFromAcmyk Provides a quick and dirty conversion from the CMYK color model to an AxoColor. No color conversion profile is used here!
Public methodStatic memberFromAhsb Creates a color from alpha, hue, saturation and brightness (AHSB model).
Public methodStatic memberFromAhsl Creates a Color from alpha, hue, saturation and lightness (AHSL model).
Public methodStatic memberFromArgb Creates a color from ARGB components.
Public methodStatic memberFromHue Creates a fully saturated bright color from hue, returning gamma corrected components R, G, and B.
Public methodStatic memberFromInvariantString Creates a color from its invariant string representation.
Public methodStatic memberFromScRgb Creates a color from linear scRGB components.
Public methodStatic memberGammaCorrectedFromLinear Convert from linear SRGB to gamma corrected values, see wikipedia (SRGB).
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetHue Gets the hue value of the color.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHsbFromLinearRgb Converts the linear Rgb components to the AHSB model, with Hue [0, 1], Saturation [0, 1] and Brightness [0, 1].
Public methodStatic memberLinearFromGammaCorrected Conversion to linear SRGB, see wikipedia (SRGB).
Public methodStatic memberLinearRgbFromHsb Creates a Color from alpha, hue, saturation and brightness (AHSB model).
Public methodStatic memberLinearRgbFromHsl Converts Hsl (Hue, Saturation, Lightness) values (all values in the range [0, 1] into the linear Rgb space.
Public methodStatic memberNormFloatToByte Converts a normalized floating-point value to a byte.
Public methodToAcmyk Provides a quick and dirty conversion from an AxoColor to the CMYK model. No color conversion profile is used here!
Public methodToAhsb Converts the color to the linear AHSB model, with alpha [0, 1], Hue [0, 1], Saturation [0, 1] and Brightness [0, 1].
Public methodToAlphaValue(Byte) Returns a copy of this color with the specified alpha value.
Public methodStatic memberToAlphaValue(AxoColor, Byte) Returns a copy of the specified color with the specified alpha value.
Public methodToArgb Converts this color to a packed ARGB integer value.
Public methodToFullyOpaque Returns a fully opaque version of this color.
Public methodStatic memberToFullyOpaque(AxoColor) Returns a fully opaque version of the specified color.
Public methodToInvariantString Converts this color to an invariant string representation.
Public methodStatic memberToScARGBFromIARGB Converts a color in given as ARGB integer into the linear SC ARGB space.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(AxoColor, AxoColor) Determines whether two colors are equal.
Public operatorStatic member(AxoColor to Color) Converts an AxoColor to a GDI color.
Public operatorStatic memberInequality(AxoColor, AxoColor) Determines whether two colors are not equal.
Top
See Also