Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NColor Structure / FromRGB Method / FromRGB(Single,Single,Single) Method


In This Topic
    FromRGB(Single,Single,Single) Method
    In This Topic
    Creates a new RGB color. Alpha is set to 1.0.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromRGB( _
       ByVal r As System.Single, _
       ByVal g As System.Single, _
       ByVal b As System.Single _
    ) As NColor
    'Usage
     
    
    Dim r As System.Single
    Dim g As System.Single
    Dim b As System.Single
    Dim value As NColor
     
    value = NColor.FromRGB(r, g, b)
    public static NColor FromRGB( 
       System.float r,
       System.float g,
       System.float b
    )

    Parameters

    r
    g
    b
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also