Nevron Open Vision Documentation
Nevron.Nov Namespace / NUnit Structure / ConvertToPixels Method


In This Topic
    ConvertToPixels Method (NUnit)
    In This Topic
    Gets the conversion factor for converting a quantity measured in this unit to the pixel unit for the specified resolution. Throws an exception if the conversion is not possible.
    Syntax
    'Declaration
     
    
    Public Function ConvertToPixels( _
       ByVal dpi As System.Double _
    ) As System.Double
    'Usage
     
    
    Dim instance As NUnit
    Dim dpi As System.Double
    Dim value As System.Double
     
    value = instance.ConvertToPixels(dpi)
    public System.double ConvertToPixels( 
       System.double dpi
    )

    Parameters

    dpi
    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