Class PngChunkScal
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.png.chunks.PngChunk
-
- org.apache.commons.imaging.formats.png.chunks.PngChunkScal
-
public final class PngChunkScal extends PngChunk
-
-
Field Summary
Fields Modifier and Type Field Description private intunitSpecifierprivate doubleunitsPerPixelXAxisprivate doubleunitsPerPixelYAxis
-
Constructor Summary
Constructors Constructor Description PngChunkScal(int length, int chunkType, int crc, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetUnitSpecifier()doublegetUnitsPerPixelXAxis()doublegetUnitsPerPixelYAxis()private doubletoDouble(java.lang.String str)-
Methods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunk
getBytes, getChunkType, getCrc, getDataStream, getLength, getPropertyBits, isAncillary, isPrivate, isReserved, isSafeToCopy
-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Constructor Detail
-
PngChunkScal
public PngChunkScal(int length, int chunkType, int crc, byte[] bytes) throws ImagingException- Throws:
ImagingException
-
-
Method Detail
-
getUnitSpecifier
public int getUnitSpecifier()
-
getUnitsPerPixelXAxis
public double getUnitsPerPixelXAxis()
-
getUnitsPerPixelYAxis
public double getUnitsPerPixelYAxis()
-
toDouble
private double toDouble(java.lang.String str) throws ImagingException- Throws:
ImagingException
-
-