Struct
HslColor

Represents color in HSL color space.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(HslColorConverter))]
public struct HslColor

Inherited Members ValueType.ToString()

Fields

Empty

Declaration

cs-api-definition
public static readonly HslColor Empty

Field Value

HslColor

Properties

A

Gets or sets color'a alpha chanel level in terms of argb color. Used mainly for conversion from/to ARGB color values.

Declaration

cs-api-definition
public int A { get; set; }

Property Value

int

H

H Channel value

Declaration

cs-api-definition
public double H { get; set; }

Property Value

double

IsEmpty

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

L

L Channel value

Declaration

cs-api-definition
public double L { get; set; }

Property Value

double

RgbValue

RGB color value

Declaration

cs-api-definition
public Color RgbValue { get; set; }

Property Value

Color

S

S Channel value

Declaration

cs-api-definition
public double S { get; set; }

Property Value

double

Methods

Equals(object)

Declaration

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

Parameters

obj

object

Returns

bool

Overrides ValueType.Equals(object)

FromAhsl(double, double, double)

Declaration

cs-api-definition
public static HslColor FromAhsl(double h, double s, double l)

Parameters

h

double

s

double

l

double

Returns

HslColor

FromAhsl(int)

Declaration

cs-api-definition
public static HslColor FromAhsl(int a)

Parameters

a

int

Returns

HslColor

FromAhsl(int, HslColor)

Declaration

cs-api-definition
public static HslColor FromAhsl(int a, HslColor hsl)

Parameters

a

int

hsl

HslColor

Returns

HslColor

FromAhsl(int, double, double, double)

Declaration

cs-api-definition
public static HslColor FromAhsl(int a, double h, double s, double l)

Parameters

a

int

h

double

s

double

l

double

Returns

HslColor

FromArgb(int, int, int, int)

Declaration

cs-api-definition
public static HslColor FromArgb(int a, int r, int g, int b)

Parameters

a

int

r

int

g

int

b

int

Returns

HslColor

FromColor(Color)

Declaration

cs-api-definition
public static HslColor FromColor(Color color)

Parameters

color

Color

Returns

HslColor

GetHashCode()

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides ValueType.GetHashCode()

Operators

operator !=(HslColor, HslColor)

Declaration

cs-api-definition
public static bool operator !=(HslColor left, HslColor right)

Parameters

left

HslColor

right

HslColor

Returns

bool

operator ==(HslColor, HslColor)

Declaration

cs-api-definition
public static bool operator ==(HslColor left, HslColor right)

Parameters

left

HslColor

right

HslColor

Returns

bool