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 doubleprivate static final intprivate static final intstatic final PhysicalScaleprivate final intprivate final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePhysicalScale(int units, double horizontalUnitsPerPixel, double verticalUnitsPerPixel) -
Method Summary
Modifier and TypeMethodDescriptionstatic PhysicalScalecreateFromMeters(double x, double y) static PhysicalScalecreateFromRadians(double x, double y) doubledoublebooleanboolean
-
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
-
getHorizontalUnitsPerPixel
public double getHorizontalUnitsPerPixel() -
getVerticalUnitsPerPixel
public double getVerticalUnitsPerPixel() -
isInMeters
public boolean isInMeters() -
isInRadians
public boolean isInRadians()
-