Struct HlsaColor
A struct representing a color comprised of Hue, Luminance, Saturation and Alpha channels.
Inherited Members
Namespace: Telerik.Windows.Controls.ColorEditor.ColorSchemas
Assembly: Telerik.Windows.Controls.dll
Syntax
public struct HlsaColor
Constructors
HlsaColor(Double, Double, Double, Double)
Initializes a new instance of the HlsaColor struct.
Declaration
public HlsaColor(double hue, double luminance, double saturation, double alpha)
Parameters
System.Double
hue
The hue channel. |
System.Double
luminance
The luminance channel. |
System.Double
saturation
The saturation channel. |
System.Double
alpha
The alpha channel. |
Properties
Alpha
Gets the alpha (opacity) channel of the HlsaColor instance.
Declaration
public double Alpha { get; }
Property Value
System.Double
The alpha channel. |
Hue
Gets the hue channel of the HlsaColor instance.
Declaration
public double Hue { get; }
Property Value
System.Double
The hue channel. |
Luminance
Gets the luminance channel of the HlsaColor instance.
Declaration
public double Luminance { get; }
Property Value
System.Double
The luminance channel. |
Saturation
Gets the saturation channel of the HlsaColor instance.
Declaration
public double Saturation { get; }
Property Value
System.Double
The saturation channel. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
Equals(HlsaColor)
Compares the two instances.
Declaration
public bool Equals(HlsaColor otherInstance)
Parameters
HlsaColor
otherInstance
The other instance. |
Returns
System.Boolean
|
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
Operators
Equality(HlsaColor, HlsaColor)
Implements the operator ==.
Declaration
public static bool operator ==(HlsaColor instance1, HlsaColor instance2)
Parameters
HlsaColor
instance1
The instance1. |
HlsaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |
Inequality(HlsaColor, HlsaColor)
Implements the operator !=.
Declaration
public static bool operator !=(HlsaColor instance1, HlsaColor instance2)
Parameters
HlsaColor
instance1
The instance1. |
HlsaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |