Declaration
function IEConvertToUnits(Value: Double; ValueUnit: TIEUnits; OutUnit: TIEUnits; DPI: Double = 0) : Double;
Description
Converts from one unit to another.
If ValueUnit or OutUnit = ieuPixels then you must specify a value for DPI.
// Convert 2 inches to centimeters (result will be around 5.08)
cm := IEConvertToUnits( 2, ieuInches, ieuCentimeters );
// Convert 300 pixels to inches (at DPI of 75, result will be 4 )
in := IEConvertToUnits( 300, ieuPixels, ieuInches, 75 );