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 void FromRGB(
	RGB rgb,
	HSL hsl
)

Parameters

rgb
Type: AForge.Imaging..::.RGB
Source color in RGB color space.
hsl
Type: AForge.Imaging..::.HSL
Destination color in HSL color space.

Remarks

See HSL and HSV Wiki for information about the algorithm to convert from RGB to HSL.

See Also