Package org.apache.commons.imaging.formats.png.chunks

# 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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PngChunkIhdr(int length, int chunkType, int crc, byte[] bytes)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getBitDepth()`
  `int`
  `getCompressionMethod()`
  `int`
  `getFilterMethod()`
  `int`
  `getHeight()`
  `InterlaceMethod`
  `getInterlaceMethod()`
  `PngColorType`
  `getPngColorType()`
  `int`
  `getWidth()`

  ### 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`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PngChunkIhdr

    public PngChunkIhdr(int length, int chunkType, int crc, byte[] bytes) throws ImagingException, IOException
    Throws:
      `ImagingException`
      `IOException`

- ## Method Details

  - ### 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()