Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NImageSource Class / TryGetUniformAlpha Method
Contains the uniform alpha value. Valid only if the method returns true.


In This Topic
    TryGetUniformAlpha Method
    In This Topic
    Determines whether all of the image's pixels have the same alpha value and obtains this alpha value.
    Syntax
    'Declaration
     
    
    Public Function TryGetUniformAlpha( _
       ByRef alpha As System.Single _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NImageSource
    Dim alpha As System.Single
    Dim value As System.Boolean
     
    value = instance.TryGetUniformAlpha(alpha)
    public System.bool TryGetUniformAlpha( 
       out System.float alpha
    )

    Parameters

    alpha
    Contains the uniform alpha value. Valid only if the method returns true.

    Return Value

    Returns true if all pixels have the same alpha value, otherwise returns false.
    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