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
-
public final class PngChunkIhdr extends PngChunk
-
-
Field Summary
Fields Modifier and Type Field Description private intbitDepthprivate intcompressionMethodprivate intfilterMethodprivate intheightprivate InterlaceMethodinterlaceMethodprivate PngColorTypepngColorTypeprivate intwidth
-
Constructor Summary
Constructors Constructor Description PngChunkIhdr(int length, int chunkType, int crc, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitDepth()intgetCompressionMethod()intgetFilterMethod()intgetHeight()InterlaceMethodgetInterlaceMethod()PngColorTypegetPngColorType()intgetWidth()-
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
-
-
-
-
Field Detail
-
width
private final int width
-
height
private final int height
-
bitDepth
private final int bitDepth
-
pngColorType
private final PngColorType pngColorType
-
compressionMethod
private final int compressionMethod
-
filterMethod
private final int filterMethod
-
interlaceMethod
private final InterlaceMethod interlaceMethod
-
-
Constructor Detail
-
PngChunkIhdr
public PngChunkIhdr(int length, int chunkType, int crc, byte[] bytes) throws ImagingException, java.io.IOException- Throws:
ImagingExceptionjava.io.IOException
-
-
Method Detail
-
getBitDepth
public int getBitDepth()
-
getCompressionMethod
public int getCompressionMethod()
-
getFilterMethod
public int getFilterMethod()
-
getHeight
public int getHeight()
-
getInterlaceMethod
public InterlaceMethod getInterlaceMethod()
-
getPngColorType
public PngColorType getPngColorType()
-
getWidth
public int getWidth()
-
-