Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NColor Structure / FromColor Method / FromColor(NColor,Byte) Method
The base color.
The desired alpha in the range [0, 1], where 0 means completely transparent and 1 means completely opaque.


In This Topic
    FromColor(NColor,Byte) Method
    In This Topic
    Creates a new color that has the color components of another color and has the specified alpha.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromColor( _
       ByVal color As NColor, _
       ByVal alpha As System.Byte _
    ) As NColor
    'Usage
     
    
    Dim color As NColor
    Dim alpha As System.Byte
    Dim value As NColor
     
    value = NColor.FromColor(color, alpha)
    public static NColor FromColor( 
       NColor color,
       System.byte alpha
    )

    Parameters

    color
    The base color.
    alpha
    The desired alpha in the range [0, 1], where 0 means completely transparent and 1 means completely opaque.
    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