ComponentOne Basic Library for UWP
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 System.Single, _
       ByVal g As System.Single, _
       ByVal b As System.Single, _
       ByRef h As System.Single, _
       ByRef s As System.Single, _
       ByRef v As System.Single _
    ) 
    public static void RGBtoHSV( 
       System.float r,
       System.float g,
       System.float b,
       out System.float h,
       out System.float s,
       out System.float v
    )

    Parameters

    r
    g
    b
    h
    s
    v
    See Also