Class PngChunkIhdr
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.png.chunks.PngChunk
org.apache.commons.imaging.formats.png.chunks.PngChunkIhdr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final intprivate final InterlaceMethodprivate final PngColorTypeprivate final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PngChunk
getBytes, getChunkType, getCrc, getDataStream, getLength, getPropertyBits, isAncillary, isPrivate, isReserved, isSafeToCopyMethods inherited from class BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
Field Details
-
width
private final int width -
height
private final int height -
bitDepth
private final int bitDepth -
pngColorType
-
compressionMethod
private final int compressionMethod -
filterMethod
private final int filterMethod -
interlaceMethod
-
-
Constructor Details
-
PngChunkIhdr
public PngChunkIhdr(int length, int chunkType, int crc, byte[] bytes) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
-
Method Details
-
getBitDepth
public int getBitDepth() -
getCompressionMethod
public int getCompressionMethod() -
getFilterMethod
public int getFilterMethod() -
getHeight
public int getHeight() -
getInterlaceMethod
-
getPngColorType
-
getWidth
public int getWidth()
-