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)
Converts pixels to inches without decimal truncation.
|
static double |
inchFloor2Dec(double pixels) |
static double |
inchFloor4Dec(double pixels) |
static double |
inchRound2Dec(double pixels) |
static double |
inchRound4Dec(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 inchFloor2Dec(double pixels)
public static double inchFloor4Dec(double pixels)
public static double inchRound2Dec(double pixels)
public static double inchRound4Dec(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 © 2023 Cloud Software Group, Inc.. All rights reserved.