[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.HslColor.-ctor

HslColor Constructor

HslColor(Color)

Initializes a new instance of the HslColor struct from a Color value.

Declaration
public HslColor(Color color)
Public Sub New(color As Color)
Parameters
Type Name Description
Color color

HslColor(float, float, float, float)

Initializes a new instance of the HslColor struct.

Declaration
public HslColor(float hue, float saturation, float lightness, float opacity = 1)
Public Sub New(hue As Single, saturation As Single, lightness As Single, Optional opacity As Single = 1)
Parameters
Type Name Description
float hue

Hue value in the range [0, 360].

float saturation

Saturation value in the range [0, 1].

float lightness

Lightness value in the range [0, 1].

float opacity

Opacity value in the range [0, 1].

HslColor(int)

Initializes a new instance of the HslColor struct from a 32-bit ARGB value.

Declaration
public HslColor(int argb)
Public Sub New(argb As Integer)
Parameters
Type Name Description
int argb