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 class PngChunkScal extends PngChunk
-
-
Field Summary
Fields Modifier and Type Field Description int
unitSpecifier
double
unitsPerPixelXAxis
double
unitsPerPixelYAxis
-
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 private double
toDouble(java.lang.String str)
-
Methods inherited from class org.apache.commons.imaging.formats.png.chunks.PngChunk
getBytes, getDataStream, getPropertyBits
-
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 ImageReadException, java.io.IOException
- Throws:
ImageReadException
java.io.IOException
-
-
Method Detail
-
toDouble
private double toDouble(java.lang.String str) throws ImageReadException
- Throws:
ImageReadException
-
-