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() |
ImageInfo |
createImageInfo()
throws PngInputException if unexpected values
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
void |
fillFromInfo(ImageInfo info) |
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, hashCode
createEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, invalidateRawData, setPriority, toString
public static final String ID
public PngChunkIHDR(ImageInfo info)
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunk
getOrderingConstraint
in class PngChunk
public ChunkRaw createRawChunk()
PngChunk
createRawChunk
in class PngChunk
public void parseFromRaw(ChunkRaw c)
PngChunk
parseFromRaw
in class PngChunk
public 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 void fillFromInfo(ImageInfo info)
public ImageInfo createImageInfo()
public void check()
Copyright © 2014. All rights reserved.