public final class LengthUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
emu(float points)
Convert an int value from points to EMU (multiply with 12700)
|
static int |
halfPoint(float pixels) |
static double |
inch(double pixels) |
static double |
inchNoRound(double pixels) |
static double |
inchRound(double pixels) |
static int |
twip(float points)
Convert a float value to twips (multiply with 20)
|
public static double inch(double pixels)
public static double inchRound(double pixels)
public static double inchNoRound(double pixels)
public static int twip(float points)
points
- value that need to be convertedpublic static int emu(float points)
points
- value that needs to be convertedpublic static int halfPoint(float pixels)
Copyright © 2015. All rights reserved.