ComponentOne FinancialChart for WPF
RGBtoHSV Method



C1.WPF Namespace > ColorEx Class : RGBtoHSV Method
r,g,b values are from 0 to 1 h = [0,360], s = [0,1], v = [0,1] if s == 0, then h = -1(undefined)
Syntax
'Declaration
 
Public Shared Sub RGBtoHSV( _
   ByVal r As Single, _
   ByVal g As Single, _
   ByVal b As Single, _
   ByRef h As Single, _
   ByRef s As Single, _
   ByRef v As Single _
) 
'Usage
 
Dim r As Single
Dim g As Single
Dim b As Single
Dim h As Single
Dim s As Single
Dim v As Single
 
ColorEx.RGBtoHSV(r, g, b, h, s, v)
public static void RGBtoHSV( 
   float r,
   float g,
   float b,
   out float h,
   out float s,
   out float v
)
public:
static void RGBtoHSV( 
   float r,
   float g,
   float b,
   [Out] float h,
   [Out] float s,
   [Out] float v
) 

Parameters

r
g
b
h
s
v
See Also

Reference

ColorEx Class
ColorEx Members