Converts a value measured in pixels (device-dependent units) to specified device-independent unit.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Shared Function ConvertPixelsToUnits ( _ resolution As Single, _ sourceValue As Integer, _ destinationUnit As Unit _ ) As Single
public static float ConvertPixelsToUnits( float resolution, int sourceValue, Unit destinationUnit )
Type: System.Single
A resolution in DPI used to convert pixels to destinationUnit.Type: System.Int32
A value in pixels which should be converted to destinationUnit.