ar.com.hjg.pngj.chunks
Class PngChunkIHDR
java.lang.Object
ar.com.hjg.pngj.chunks.PngChunk
ar.com.hjg.pngj.chunks.PngChunkSingle
ar.com.hjg.pngj.chunks.PngChunkIHDR
public class PngChunkIHDR
- extends PngChunkSingle
this is a special chunk!
ID
public static final String ID
- See Also:
- Constant Field Values
PngChunkIHDR
public PngChunkIHDR(ImageInfo info)
cloneDataFromRead
public void cloneDataFromRead(PngChunk other)
- Description copied from class:
PngChunk
- Makes a copy of the chunk.
This is used when copying chunks from a reader to a writer
It should normally be a deep copy, and after the cloning this.equals(other) should return true
- Specified by:
cloneDataFromRead
in class PngChunk
createRawChunk
public ChunkRaw createRawChunk()
- Description copied from class:
PngChunk
- Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its
own logic.
- Specified by:
createRawChunk
in class PngChunk
- Returns:
- A newly allocated and filled raw chunk
getBitspc
public int getBitspc()
getColormodel
public int getColormodel()
getCols
public int getCols()
getCompmeth
public int getCompmeth()
getFilmeth
public int getFilmeth()
getInterlaced
public int getInterlaced()
getOrderingConstraint
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
- Description copied from class:
PngChunk
- see
PngChunk.ChunkOrderingConstraint
- Specified by:
getOrderingConstraint
in class PngChunk
getRows
public int getRows()
parseFromRaw
public void parseFromRaw(ChunkRaw c)
- Description copied from class:
PngChunk
- Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class
implements its own logic.
- Specified by:
parseFromRaw
in class PngChunk
setBitspc
public void setBitspc(int bitspc)
setColormodel
public void setColormodel(int colormodel)
setCols
public void setCols(int cols)
setCompmeth
public void setCompmeth(int compmeth)
setFilmeth
public void setFilmeth(int filmeth)
setInterlaced
public void setInterlaced(int interlaced)
setRows
public void setRows(int rows)