Convert from RGB to HSL color space.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static HSL FromRGB(
	RGB rgb
)

Parameters

rgb
Type: AForge.Imaging..::.RGB
Source color in RGB color space.

Return Value

Returns HSL instance, which represents converted color value.

See Also