ShlwApiColorHLSToRGB Method
Converts colors from hue-luminance-saturation (HLS) to RGB 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 int ColorHLSToRGB(
ushort hue,
ushort luminance,
ushort saturation
)
<DllImportAttribute("ShlwApi.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function ColorHLSToRGB (
hue As UShort,
luminance As UShort,
saturation As UShort
) As Integer
Dim hue As UShort
Dim luminance As UShort
Dim saturation As UShort
Dim returnValue As Integer
returnValue = ShlwApi.ColorHLSToRGB(hue,
luminance, saturation)
public:
[DllImportAttribute(L"ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
static int ColorHLSToRGB(
unsigned short hue,
unsigned short luminance,
unsigned short saturation
)
[<DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)>]
static member ColorHLSToRGB :
hue : uint16 *
luminance : uint16 *
saturation : uint16 -> int
No code example is currently available or this language may not be supported.
- hue UInt16
-
The original HLS hue value.
- luminance UInt16
-
The original HLS luminance value.
- saturation UInt16
-
The original HLS saturation value.
Int32
Returns the RGB value.