|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.tools.UnitConv
public class UnitConv
Utility class for unit conversions.
Constructor Summary | |
---|---|
protected |
UnitConv()
Utility class: Constructor prevents instantiating when subclassed. |
Method Summary | |
---|---|
static double |
in2mm(double in)
Converts inches (in) to millimeters (mm) |
static double |
mm2in(double mm)
Converts millimeters (mm) to inches (in) |
static double |
mm2pt(double mm)
Converts millimeters (mm) to points (pt) |
static int |
mm2px(double mm,
int resolution)
Converts millimeters (mm) to pixels (px) |
static double |
pt2mm(double pt)
Converts points (pt) to millimeters (mm) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected UnitConv()
Method Detail |
---|
public static double mm2pt(double mm)
mm
- the value in mm
public static double pt2mm(double pt)
pt
- the value in pt
public static double mm2in(double mm)
mm
- the value in mm
public static double in2mm(double in)
in
- the value in inches
public static int mm2px(double mm, int resolution)
mm
- the value in mmresolution
- the resolution in dpi (dots per inch)
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |