Function Reference


_WinAPI_ColorRGBToHLS

Converts colors from RGB to hue-luminance-saturation (HLS) format

#include <WinAPIGdi.au3>
_WinAPI_ColorRGBToHLS ( $iRGB, ByRef $iHue, ByRef $iLuminance, ByRef $iSaturation )

Parameters

$iRGB RGB color.
$iHue Returns HLS hue value.
$iLuminance Returns HLS luminance value.
$iSaturation Returns HLS saturation value.

Return Value

None.

See Also

Search ColorRGBToHLS in MSDN Library.

Example

#include <WinAPIGdi.au3>

Local $iHue, $iLuminance, $iSaturation
_WinAPI_ColorRGBToHLS(0xFF8000, $iHue, $iLuminance, $iSaturation)

ConsoleWrite('Hue: ' & $iHue & @CRLF)
ConsoleWrite('Sat: ' & $iSaturation & @CRLF)
ConsoleWrite('Lum: ' & $iLuminance & @CRLF)