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 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.