Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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 RGB to hue-luminance-saturation (HLS) format.
void ColorRGBToHLS(
COLORREF clrRGB,
[out] WORD *pwHue,
[out] WORD *pwLuminance,
[out] WORD *pwSaturation
);
clrRGB
Type: COLORREF
The original RGB color.
[out] pwHue
Type: WORD*
A pointer to a value that, when this method returns successfully, receives the HLS hue value. Can range from 0 to 240.
[out] pwLuminance
Type: WORD*
A pointer to a value that, when this method returns successfully, receives the HLS luminance value. Can range from 0 to 240.
[out] pwSaturation
Type: WORD*
A pointer to a value that, when this method returns successfully, receives the HLS saturation value. Can range from 0 to 240.
None
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) |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today