Reference Guide
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 _
    ) 
    public void ColorRGBtoHSL( 
       byte Red,
       byte Green,
       byte Blue,
       ref float Hue,
       ref float Saturation,
       ref float Lightness
    )
    public procedure ColorRGBtoHSL( 
        Red: Byte;
        Green: Byte;
        Blue: Byte;
       var  Hue: Single;
       var  Saturation: Single;
       var  Lightness: Single
    ); 
    public function ColorRGBtoHSL( 
       Red : byte,
       Green : byte,
       Blue : byte,
       Hue : float,
       Saturation : float,
       Lightness : float
    );
    public: void ColorRGBtoHSL( 
       byte Red,
       byte Green,
       byte Blue,
       ref float Hue,
       ref float Saturation,
       ref float Lightness
    ) 
    public:
    void ColorRGBtoHSL( 
       byte Red,
       byte Green,
       byte Blue,
       float% Hue,
       float% Saturation,
       float% Lightness
    ) 

    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