Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / Unit Structure / Convert Method / Convert(Single,Single,UnitTypeEnum) Method
The value to convert in pixels.
The source dpi.
The target unit of measurement.

In This Topic
    Convert(Single,Single,UnitTypeEnum) Method
    In This Topic
    Converts a value from pixel unit of measurement to another.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Convert( _
       ByVal value As System.Single, _
       ByVal fromDpi As System.Single, _
       ByVal to As UnitTypeEnum _
    ) As System.Single
    public static System.float Convert( 
       System.float value,
       System.float fromDpi,
       UnitTypeEnum to
    )

    Parameters

    value
    The value to convert in pixels.
    fromDpi
    The source dpi.
    to
    The target unit of measurement.

    Return Value

    value converted to to units.
    See Also