Struct
HlsaColor

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

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Hlsa")]
public struct HlsaColor

Inherited Members ValueType.ToString()

Constructors

HlsaColor(double, double, double, double)

Initializes a new instance of the HlsaColor struct.

Declaration

cs-api-definition
public HlsaColor(double hue, double luminance, double saturation, double alpha)

Parameters

hue

double

The hue channel.

luminance

double

The luminance channel.

saturation

double

The saturation channel.

alpha

double

The alpha channel.

Properties

Alpha

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

Declaration

cs-api-definition
public double Alpha { get; }

Property Value

double

The alpha channel.

Hue

Gets the hue channel of the HlsaColor instance.

Declaration

cs-api-definition
public double Hue { get; }

Property Value

double

The hue channel.

Luminance

Gets the luminance channel of the HlsaColor instance.

Declaration

cs-api-definition
public double Luminance { get; }

Property Value

double

The luminance channel.

Saturation

Gets the saturation channel of the HlsaColor instance.

Declaration

cs-api-definition
public double Saturation { get; }

Property Value

double

The saturation channel.

Methods

Equals(HlsaColor)

Compares the two instances.

Declaration

cs-api-definition
public bool Equals(HlsaColor otherInstance)

Parameters

otherInstance

HlsaColor

The other instance.

Returns

bool

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(HlsaColor, HlsaColor)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(HlsaColor instance1, HlsaColor instance2)

Parameters

instance1

HlsaColor

The instance1.

instance2

HlsaColor

The instance2.

Returns

bool

The result of the operator.

operator ==(HlsaColor, HlsaColor)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(HlsaColor instance1, HlsaColor instance2)

Parameters

instance1

HlsaColor

The instance1.

instance2

HlsaColor

The instance2.

Returns

bool

The result of the operator.

Extension Methods