Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts colors from hue-luminance-saturation (HLS) to RGB format.
Syntax
COLORREF ColorHLSToRGB(
WORD wHue,
WORD wLuminance,
WORD wSaturation
);
Parameters
wHue
Type: WORD
The original HLS hue value. Can range from 0 to 240.
wLuminance
Type: WORD
The original HLS luminance value. Can range from 0 to 240.
wSaturation
Type: WORD
The original HLS saturation value. Can range from 0 to 240.
Return value
Type: COLORREF
Returns the RGB value.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | shlwapi.h |
| Library | Shlwapi.lib |
| DLL | Shlwapi.dll (version 5.0 or later) |