Click or drag to resize
Accord.NET (logo)

HSLFromRGB Method (RGB, HSL)

Convert from RGB to HSL color space.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static void FromRGB(
	RGB rgb,
	ref HSL hsl
)
Request Example View Source

Parameters

rgb
Type: Accord.ImagingRGB
Source color in RGB color space.
hsl
Type: Accord.ImagingHSL
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