public class PngChunkIHDR extends PngChunkSingle
see http://www.w3.org/TR/PNG/#11IHDR
This is a special critical Chunk.
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkIHDR(ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
check() |
PngChunk |
cloneForWrite(ImageInfo imgInfo)
Makes a copy of the chunk.
|
ImageInfo |
createImageInfo()
throws PngInputException if unexpected values
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
int |
getBitspc() |
int |
getColormodel() |
int |
getCols() |
int |
getCompmeth() |
int |
getFilmeth() |
int |
getInterlaced() |
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
int |
getRows() |
boolean |
isInterlaced() |
void |
parseFromRaw(ChunkRaw c)
Parses raw chunk and fill inside data.
|
void |
setBitspc(int bitspc) |
void |
setColormodel(int colormodel) |
void |
setCols(int cols) |
void |
setCompmeth(int compmeth) |
void |
setFilmeth(int filmeth) |
void |
setInterlaced(int interlaced) |
void |
setRows(int rows) |
allowsMultiple, equals, hashCodecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic static final String ID
public PngChunkIHDR(ImageInfo info)
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunkgetOrderingConstraint in class PngChunkpublic ChunkRaw createRawChunk()
PngChunkcreateRawChunk in class PngChunkpublic void parseFromRaw(ChunkRaw c)
PngChunkparseFromRaw in class PngChunkpublic PngChunk cloneForWrite(ImageInfo imgInfo)
PngChunkThis is used when copying chunks from a reader to a writer
This is usually a (shallow) copy, and after the cloning this.equals(other) should return true
cloneForWrite in class PngChunkpublic int getCols()
public void setCols(int cols)
public int getRows()
public void setRows(int rows)
public int getBitspc()
public void setBitspc(int bitspc)
public int getColormodel()
public void setColormodel(int colormodel)
public int getCompmeth()
public void setCompmeth(int compmeth)
public int getFilmeth()
public void setFilmeth(int filmeth)
public int getInterlaced()
public void setInterlaced(int interlaced)
public boolean isInterlaced()
public ImageInfo createImageInfo()
public void check()
Copyright © 2013. All rights reserved.