Click or drag to resize

ColorFromHsl Method (Int32, Int32, Int32, Double)

Creates a new color instance from the specified Hue, Saturation and Lightness components and transparency.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1041 (21.3.35.1041)
Syntax
public static Color FromHsl(
	int h,
	int s,
	int l,
	double transparency
)

Parameters

h
Type: SystemInt32
The Hue component (from 0 to 255).
s
Type: SystemInt32
The Saturation component (from 0 to 255).
l
Type: SystemInt32
The Lightness component (from 0 to 255).
transparency
Type: SystemDouble
The transparency (0 = fully opaque, 1 = fully transparent).

Return Value

Type: Color
A new color instance from the specified Hue, Saturation and Lightness components and transparency.
See Also