ShlwApiColorRGBToHLS Method

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

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
public static void ColorRGBToHLS(
	int rgb,
	out ushort refHUE,
	out ushort refLuminance,
	out ushort refSaturation
)

Parameters

rgb  Int32
The original RGB color.
refHUE  UInt16
A pointer to a value that, when this method returns successfully, receives the HLS hue value.
refLuminance  UInt16
A pointer to a value that, when this method returns successfully, receives the HLS luminance value.
refSaturation  UInt16
A pointer to a value that, when this method returns successfully, receives the HLS saturation value.

Remarks

See Also