VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Utils Namespace / UnitOfMeasureConverter Class / ConvertToDeviceIndependentPixels Methods / ConvertToDeviceIndependentPixels(Double,UnitOfMeasure,Double) Method
Syntax Requirements SeeAlso
In This Topic
    ConvertToDeviceIndependentPixels(Double,UnitOfMeasure,Double) Method (UnitOfMeasureConverter)
    In This Topic
    Converts value from specified UnitOfMeasure to device independent pixels with specified resolution.
    Syntax
    'Declaration
    
    Public Overloads Shared Function ConvertToDeviceIndependentPixels( _
    ByVal value
    Value to convert.
    As Double, _
    ByVal valueUnitOfMeasure
    Value unit of measure.
    As Vintasoft.Imaging.UnitOfMeasure, _
    ByVal valueDpi
    Resolution in dot/inch.
    As Double _
    ) As Double
    public static double ConvertToDeviceIndependentPixels(
    double value,
    Vintasoft.Imaging.UnitOfMeasure valueUnitOfMeasure,
    double valueDpi
    )
    public: static double ConvertToDeviceIndependentPixels(
    double value,
    Vintasoft.Imaging.UnitOfMeasure valueUnitOfMeasure,
    double valueDpi
    )
    public:
    static double ConvertToDeviceIndependentPixels(
    double value,
    Vintasoft.Imaging.UnitOfMeasure valueUnitOfMeasure,
    double valueDpi
    )

    Parameters

    value
    Value to convert.
    valueUnitOfMeasure
    Value unit of measure.
    valueDpi
    Resolution in dot/inch.

    Return Value

    Converted value.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also