/** * Convert a pixel value to twips and return as a double. This may be useful * where the returned value will then be converted to another unit, and we * don't want to lose precision due to rounding. */ public static double pxToTwipDouble(double px) { double inch = px / DPI; return inchToTwipDouble(inch); }
/** * Convert a pixel value to twips and return as a double. This may be useful * where the returned value will then be converted to another unit, and we * don't want to lose precision due to rounding. */ public static double pxToTwipDouble(double px) { double inch = px / DPI; return inchToTwipDouble(inch); }