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





In This Topic
ColorHSLtoRGB Method (GdPictureImaging)
In This Topic
Converts the required HSL color, which is composed of a set of specified hue, saturation and lightness color components to the RGB color composed of a set of resulting red, green and blue components.
Syntax
'Declaration
 
Public Sub ColorHSLtoRGB( _
   ByVal Hue As Single, _
   ByVal Saturation As Single, _
   ByVal Lightness As Single, _
   ByRef Red As Byte, _
   ByRef Green As Byte, _
   ByRef Blue As Byte _
) 
public void ColorHSLtoRGB( 
   float Hue,
   float Saturation,
   float Lightness,
   ref byte Red,
   ref byte Green,
   ref byte Blue
)
public procedure ColorHSLtoRGB( 
    Hue: Single;
    Saturation: Single;
    Lightness: Single;
   var  Red: Byte;
   var  Green: Byte;
   var  Blue: Byte
); 
public function ColorHSLtoRGB( 
   Hue : float,
   Saturation : float,
   Lightness : float,
   Red : byte,
   Green : byte,
   Blue : byte
);
public: void ColorHSLtoRGB( 
   float Hue,
   float Saturation,
   float Lightness,
   ref byte Red,
   ref byte Green,
   ref byte Blue
) 
public:
void ColorHSLtoRGB( 
   float Hue,
   float Saturation,
   float Lightness,
   byte% Red,
   byte% Green,
   byte% Blue
) 

Parameters

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