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


In This Topic
    TryConvertToPixels Method
    In This Topic
    Gets the conversion factor for converting a quantity measured in this unit to the pixel unit for the specified resolution. Returns true if the conversion is possible, otherwise returns false.
    Syntax
    'Declaration
     
    
    Public Function TryConvertToPixels( _
       ByVal dpi As System.Double, _
       ByRef factor As System.Double _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NUnit
    Dim dpi As System.Double
    Dim factor As System.Double
    Dim value As System.Boolean
     
    value = instance.TryConvertToPixels(dpi, factor)
    public System.bool TryConvertToPixels( 
       System.double dpi,
       out System.double factor
    )

    Parameters

    dpi
    factor
    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