BCGControlBar Library for .NET
RGBtoHSL Method




RGB color value to translate.
Hue component of the color to get.
Saturation component of the color to get.
Lightness component of the color to get.
Translates the color value from RGB to HSL.
Syntax
'Declaration
 
Public Shared Sub RGBtoHSL( _
   ByVal rgb As Color, _
   ByRef H As Double, _
   ByRef S As Double, _
   ByRef L As Double _
) 
'Usage
 
Dim rgb As Color
Dim H As Double
Dim S As Double
Dim L As Double
 
DrawManager.RGBtoHSL(rgb, H, S, L)
public static void RGBtoHSL( 
   Color rgb,
   ref double H,
   ref double S,
   ref double L
)
public: static void RGBtoHSL( 
   Color rgb,
   ref double H,
   ref double S,
   ref double L
) 
public:
static void RGBtoHSL( 
   Color rgb,
   double% H,
   double% S,
   double% L
) 

Parameters

rgb
RGB color value to translate.
H
Hue component of the color to get.
S
Saturation component of the color to get.
L
Lightness component of the color to get.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DrawManager Class
DrawManager Members

Send Feedback