Sparkline for UWP | ComponentOne
C1.UWP Assembly / C1.Xaml Namespace / ColorEx Class / RGBtoHSV Method

In This Topic
    RGBtoHSV Method
    In This Topic
    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 _
    ) 
    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