Struct HsvaColor
A struct representing a color comprised of Hue, Saturation, Value and Alpha channels.
Inherited Members
Namespace: Telerik.Windows.Controls.ColorEditor.ColorSchemas
Assembly: Telerik.Windows.Controls.dll
Syntax
public struct HsvaColor
Constructors
HsvaColor(Double, Double, Double, Double)
Initializes a new instance of the HsvaColor struct.
Declaration
public HsvaColor(double hue, double saturation, double value, double alpha)
Parameters
System.Double
hue
The hue channel. |
System.Double
saturation
The saturation channel. |
System.Double
value
The value channel. |
System.Double
alpha
The alpha channel. |
Properties
Alpha
Gets the alpha (opacity) channel of the HsvaColor instance.
Declaration
public double Alpha { get; }
Property Value
System.Double
The alpha channel. |
Hue
Gets the hue channel of the HsvaColor instance.
Declaration
public double Hue { get; }
Property Value
System.Double
The hue channel. |
Saturation
Gets the saturation channel of the HsvaColor instance.
Declaration
public double Saturation { get; }
Property Value
System.Double
The saturation channel. |
Value
Gets the value channel of the HsvaColor instance.
Declaration
public double Value { get; }
Property Value
System.Double
The value 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(HsvaColor)
Compares the two instance.
Declaration
public bool Equals(HsvaColor otherInstance)
Parameters
HsvaColor
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(HsvaColor, HsvaColor)
Implements the operator ==.
Declaration
public static bool operator ==(HsvaColor instance1, HsvaColor instance2)
Parameters
HsvaColor
instance1
The instance1. |
HsvaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |
Inequality(HsvaColor, HsvaColor)
Implements the operator !=.
Declaration
public static bool operator !=(HsvaColor instance1, HsvaColor instance2)
Parameters
HsvaColor
instance1
The instance1. |
HsvaColor
instance2
The instance2. |
Returns
System.Boolean
The result of the operator. |