You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Color Object Creation & Color Space Conversion > ColorRGBtoHSL Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.ColorRGBtoHSL Method

Converts RBG color from a set of red, green, and blue color components to HSL color into a set of hue, saturation and lightness components.

C#
public ColorRGBtoHSL(
    Byte RedValue, 
    Byte GreenValue, 
    Byte BlueValue, 
    ref Single HueReturn, 
    ref Single SaturationReturn, 
    ref Single LightnessReturn
);
Visual Basic
Public Sub ColorRGBtoHSL(
    ByVal RedValue As Byte, 
    ByVal GreenValue As Byte, 
    ByVal BlueValue As Byte, 
    ByRef HueReturn As Single, 
    ByRef SaturationReturn As Single, 
    ByRef LightnessReturn As Single
)
Parameters
Parameters 
Description 
RedValue 
Input red component value [0 - 255].  
GreenValue 
Input green component value [0 - 255].  
BlueValue 
Input blue component value [0 - 255].  
HueReturn 
Output parameter. Hue component value [-1 ; 5].  
SaturationReturn 
Output parameter. Saturation component value [0 ; 1].  
LightnessReturn 
Output parameter. Lightness component value [0 ; 1]. 
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.