Class PhysicalScale
- java.lang.Object
-
- org.apache.commons.imaging.formats.png.PhysicalScale
-
public class PhysicalScale extends Object
Used to specify physical scale when reading or storing image information.
-
-
Field Summary
Fields Modifier and Type Field Description static PhysicalScaleUNDEFINED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhysicalScalecreateFromMeters(double x, double y)static PhysicalScalecreateFromRadians(double x, double y)doublegetHorizontalUnitsPerPixel()doublegetVerticalUnitsPerPixel()booleanisInMeters()booleanisInRadians()
-
-
-
Field Detail
-
UNDEFINED
public static final PhysicalScale UNDEFINED
-
-
Method Detail
-
createFromMeters
public static PhysicalScale createFromMeters(double x, double y)
-
createFromRadians
public static PhysicalScale createFromRadians(double x, double y)
-
isInMeters
public boolean isInMeters()
-
isInRadians
public boolean isInRadians()
-
getHorizontalUnitsPerPixel
public double getHorizontalUnitsPerPixel()
-
getVerticalUnitsPerPixel
public double getVerticalUnitsPerPixel()
-
-