Top Description Fields Constructors Methods
jogamp.opengl.util.pngj.chunks

public Class PngChunkIHDR

extends PngChunkSingle
Class Inheritance
Imports
java.io.ByteArrayInputStream, jogamp.opengl.util.pngj.ImageInfo, .PngHelperInternal, .PngjException

IHDR chunk.

see http://www.w3.org/TR/PNG/#11IHDR

This is a special critical Chunk.

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private int
private int
public static final String
private int
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkIHDR(final ImageInfo info)

Method Summary

Modifier and TypeMethod and Description
public void
cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.
public ChunkRaw
createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk.
public int
public int
public int
public int
public int
public int
public PngChunk.ChunkOrderingConstraint
public int
public void
parseFromRaw(final ChunkRaw c)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data.
public void
setBitspc(final int bitspc)

public void
setColormodel(final int colormodel)

public void
setCols(final int cols)

public void
setCompmeth(final int compmeth)

public void
setFilmeth(final int filmeth)

public void
setInterlaced(final int interlaced)

public void
setRows(final int rows)

Inherited from jogamp.opengl.util.pngj.chunks.PngChunkSingle:
allowsMultipleequalshashCode

Field Detail

bitspcback to summary
private int bitspc
colormodelback to summary
private int colormodel
colsback to summary
private int cols
compmethback to summary
private int compmeth
filmethback to summary
private int filmeth
IDback to summary
public static final String ID
interlacedback to summary
private int interlaced
rowsback to summary
private int rows

Constructor Detail

PngChunkIHDRback to summary
public PngChunkIHDR(final ImageInfo info)

Method Detail

cloneDataFromReadback to summary
public void cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

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

Annotations
@Override
createRawChunkback to summary
public ChunkRaw createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its own logic.

Returns:ChunkRaw

A newly allocated and filled raw chunk

Annotations
@Override
getBitspcback to summary
public int getBitspc()
getColormodelback to summary
public int getColormodel()
getColsback to summary
public int getCols()
getCompmethback to summary
public int getCompmeth()
getFilmethback to summary
public int getFilmeth()
getInterlacedback to summary
public int getInterlaced()
getOrderingConstraintback to summary
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

see ChunkOrderingConstraint

Annotations
@Override
getRowsback to summary
public int getRows()
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw c)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class implements its own logic.

Annotations
@Override
setBitspcback to summary
public void setBitspc(final int bitspc)
setColormodelback to summary
public void setColormodel(final int colormodel)
setColsback to summary
public void setCols(final int cols)
setCompmethback to summary
public void setCompmeth(final int compmeth)
setFilmethback to summary
public void setFilmeth(final int filmeth)
setInterlacedback to summary
public void setInterlaced(final int interlaced)
setRowsback to summary
public void setRows(final int rows)