New to Telerik UI for WPF? Start a free 30-day trial

HsvaColor

Struct

A struct representing a color comprised of Hue, Saturation, Value and Alpha channels.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public struct HsvaColor

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the HsvaColor struct.

C#
public HsvaColor(double hue, double saturation, double value, double alpha)
Parameters:huedouble

The hue channel.

saturationdouble

The saturation channel.

valuedouble

The value channel.

alphadouble

The alpha channel.

Properties

Gets the alpha (opacity) channel of the HsvaColor instance.

C#
public double Alpha { get; }
Property Value:

The alpha channel.

Gets the hue channel of the HsvaColor instance.

C#
public double Hue { get; }
Property Value:

The hue channel.

Gets the saturation channel of the HsvaColor instance.

C#
public double Saturation { get; }
Property Value:

The saturation channel.

Gets the value channel of the HsvaColor instance.

C#
public double Value { get; }
Property Value:

The value channel.

Methods

Compares the two instance.

C#
public bool Equals(HsvaColor otherInstance)
Parameters:otherInstanceHsvaColor

The other instance.

Returns:

bool

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: ValueType.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: ValueType.GetHashCode()

Operators

Implements the operator !=.

C#
public static bool operator !=(HsvaColor instance1, HsvaColor instance2)
Parameters:instance1HsvaColor

The instance1.

instance2HsvaColor

The instance2.

Returns:

bool

The result of the operator.

Implements the operator ==.

C#
public static bool operator ==(HsvaColor instance1, HsvaColor instance2)
Parameters:instance1HsvaColor

The instance1.

instance2HsvaColor

The instance2.

Returns:

bool

The result of the operator.

Extension Methods