ShlwApiColorRGBToHLS Method
Converts colors from RGB to hue-luminance-saturation (HLS) format
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("ShlwApi.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Sub ColorRGBToHLS (
rgb As Integer,
<OutAttribute> ByRef refHUE As UShort,
<OutAttribute> ByRef refLuminance As UShort,
<OutAttribute> ByRef refSaturation As UShort
)
Dim rgb As Integer
Dim refHUE As UShort
Dim refLuminance As UShort
Dim refSaturation As UShort
ShlwApi.ColorRGBToHLS(rgb, refHUE, refLuminance,
refSaturation)
public:
[DllImportAttribute(L"ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
static void ColorRGBToHLS(
int rgb,
[OutAttribute] unsigned short% refHUE,
[OutAttribute] unsigned short% refLuminance,
[OutAttribute] unsigned short% refSaturation
)
[<DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)>]
static member ColorRGBToHLS :
rgb : int *
refHUE : uint16 byref *
refLuminance : uint16 byref *
refSaturation : uint16 byref -> unit
No code example is currently available or this language may not be supported.
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.