Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NColor Structure / NColor Constructor / NColor Constructor(Byte,Byte,Byte,Byte)
The red component.
The green component.
The blue component.
The alpha component.


In This Topic
    NColor Constructor(Byte,Byte,Byte,Byte)
    In This Topic
    Creates an RGB color with the specified red, green, blue and alpha values in the range [0 - 255].
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal r As System.Byte, _
       ByVal g As System.Byte, _
       ByVal b As System.Byte, _
       ByVal a As System.Byte _
    )
    'Usage
     
    
    Dim r As System.Byte
    Dim g As System.Byte
    Dim b As System.Byte
    Dim a As System.Byte
     
    Dim instance As New NColor(r, g, b, a)
    public NColor( 
       System.byte r,
       System.byte g,
       System.byte b,
       System.byte a
    )

    Parameters

    r
    The red component.
    g
    The green component.
    b
    The blue component.
    a
    The alpha component.
    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