GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / ColorRGBtoHSL Method
The input value for the red component. Use the value between 0 and 255.
The input value for the green component. Use the value between 0 and 255.
The input value for the blue component. Use the value between 0 and 255.
Output parameter. The resulting value for the hue component between -1 and 5.
Output parameter. The resulting value for the saturation component between 0 and 1.
Output parameter. The resulting value for the lightness component between 0 and 1.





In This Topic
ColorRGBtoHSL Method (GdPictureImaging)
In This Topic
Converts the required RGB color, which is composed of a set of specified red, green and blue color components to the HSL color composed of a set of resulting hue, saturation and lightness components.
Syntax
'Declaration
 
Public Sub ColorRGBtoHSL( _
   ByVal Red As Byte, _
   ByVal Green As Byte, _
   ByVal Blue As Byte, _
   ByRef Hue As Single, _
   ByRef Saturation As Single, _
   ByRef Lightness As Single _
) 
 

Parameters

Red
The input value for the red component. Use the value between 0 and 255.
Green
The input value for the green component. Use the value between 0 and 255.
Blue
The input value for the blue component. Use the value between 0 and 255.
Hue
Output parameter. The resulting value for the hue component between -1 and 5.
Saturation
Output parameter. The resulting value for the saturation component between 0 and 1.
Lightness
Output parameter. The resulting value for the lightness component between 0 and 1.
See Also