blob: e0dcfb86b93f23213d6a7193cee94d33c0801d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package org.libreoffice;
public class UnitConverter {
public static float twipToPixel(float input, float dpi) {
return input / 1440.0f * dpi;
}
public static float pixelToTwip(float input, float dpi) {
return (input / dpi) * 1440.0f;
}
}
|