NevronOpenVision
Nevron.Nov.Graphics Namespace / NColor Structure / FromColor Method / FromColor(NColor,Single) 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,Single) Method
    In This Topic
    Creates a new color that has the color components of another color and has the specified alpha.
    Syntax
    public static NColor FromColor( 
       NColor color,
       System.float 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