BCGControlBar Library for .NET
RGBtoHSV Method




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

Parameters

rgb
RGB color value to translate.
H
Hue component of the color to get.
S
Saturation component of the color to get.
V
Value 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