Class PhysicalScale
java.lang.Object
org.apache.commons.imaging.formats.png.PhysicalScale
Used to specify physical scale when reading or storing image information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private static final int
private static final int
static final PhysicalScale
private final int
private final double
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PhysicalScale
(int units, double horizontalUnitsPerPixel, double verticalUnitsPerPixel) -
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalScale
createFromMeters
(double x, double y) static PhysicalScale
createFromRadians
(double x, double y) double
double
boolean
boolean
-
Field Details
-
METER_UNITS
private static final int METER_UNITS- See Also:
-
RADIAN_UNITS
private static final int RADIAN_UNITS- See Also:
-
UNDEFINED
-
units
private final int units -
horizontalUnitsPerPixel
private final double horizontalUnitsPerPixel -
verticalUnitsPerPixel
private final double verticalUnitsPerPixel
-
-
Constructor Details
-
PhysicalScale
private PhysicalScale(int units, double horizontalUnitsPerPixel, double verticalUnitsPerPixel)
-
-
Method Details
-
createFromMeters
-
createFromRadians
-
isInMeters
public boolean isInMeters() -
isInRadians
public boolean isInRadians() -
getHorizontalUnitsPerPixel
public double getHorizontalUnitsPerPixel() -
getVerticalUnitsPerPixel
public double getVerticalUnitsPerPixel()
-