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