Class ColorHSL
HSL color space.
Inheritance
System.Object
ColorHSL
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ColorHSL
Constructors
ColorHSL(Color)
Declaration
public ColorHSL(Color pColor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | pColor |
ColorHSL(Int32, Int32, Int32)
Declaration
public ColorHSL(int h, int s, int l)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | h | |
System.Int32 | s | |
System.Int32 | l |
Properties
H
Gets or sets hue component of a color space.
Declaration
public int H { get; set; }
Property Value
Type |
---|
System.Int32 |
L
Gets or sets luminance component of a color space.
Declaration
public int L { get; set; }
Property Value
Type |
---|
System.Int32 |
S
Gets or sets saturation component of a color space.
Declaration
public int S { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
Modify(Int32, Int32, Int32)
Method converts Color defined in RGB values to HSL color space.
Declaration
public void Modify(int hue, int sat, int lum)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hue | Hue value. |
System.Int32 | sat | Saturation value. |
System.Int32 | lum | Luminance value. |
ToRGB()
Method converts Color defined in HSL values to RGB color space.
Declaration
public Color ToRGB()
Returns
Type |
---|
System.Drawing.Color |