public class Units
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EMU_PER_PIXEL |
static int |
EMU_PER_POINT |
| Constructor and Description |
|---|
Units() |
| Modifier and Type | Method and Description |
|---|---|
static double |
fixedPointToDecimal(int fixedPoint)
Converts a value of type FixedPoint to a decimal number
|
static int |
toEMU(double points)
Converts points to EMUs
|
static double |
toPoints(long emu)
Converts EMUs to points
|
public static final int EMU_PER_PIXEL
public static final int EMU_PER_POINT
public static int toEMU(double points)
points - pointspublic static double toPoints(long emu)
emu - emupublic static double fixedPointToDecimal(int fixedPoint)
fixedPoint - Copyright 2015 The Apache Software Foundation or its licensors, as applicable.