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  As Byte, _
   ByVal  As Byte, _
   ByVal  As Byte, _
   ByRef  As Single, _
   ByRef  As Single, _
   ByRef  As Single _
) 
             
        
            
            public void ColorRGBtoHSL( 
   byte ,
   byte ,
   byte ,
   ref float ,
   ref float ,
   ref float 
)
             
        
            
            public procedure ColorRGBtoHSL( 
    : Byte;
    : Byte;
    : Byte;
   var  : Single;
   var  : Single;
   var  : Single
); 
             
        
            
            public function ColorRGBtoHSL( 
    : byte,
    : byte,
    : byte,
    : float,
    : float,
    : float
);
             
        
            
            public: void ColorRGBtoHSL( 
   byte ,
   byte ,
   byte ,
   ref float ,
   ref float ,
   ref float 
) 
             
        
            
            public:
void ColorRGBtoHSL( 
   byte ,
   byte ,
   byte ,
   float% ,
   float% ,
   float% 
) 
             
        
             
        
            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