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

public Class PngChunkPLTE

extends PngChunkSingle
Class Inheritance
Imports
jogamp.opengl.util.pngj.ImageInfo, .PngjException

PLTE chunk.

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

Critical chunk

Field Summary

Modifier and TypeField and Description
private int[]
entries

RGB8 packed in one integer

public static final String
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkPLTE(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
getEntry(final int n)

public void
getEntryRgb(final int n, final int[] rgb)

public void
getEntryRgb(final int n, final int[] rgb, final int offset)

public int
public PngChunk.ChunkOrderingConstraint
public int
public void
parseFromRaw(final ChunkRaw chunk)

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

Parses raw chunk and fill inside data.
public void
setEntry(final int n, final int r, final int g, final int b)

public void
setNentries(final int n)

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

Field Detail

entriesback to summary
private int[] entries

RGB8 packed in one integer

IDback to summary
public static final String ID
nentriesback to summary
private int nentries

Constructor Detail

PngChunkPLTEback to summary
public PngChunkPLTE(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
getEntryback to summary
public int getEntry(final int n)
getEntryRgbback to summary
public void getEntryRgb(final int n, final int[] rgb)
getEntryRgbback to summary
public void getEntryRgb(final int n, final int[] rgb, final int offset)
getNentriesback to summary
public int getNentries()
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
minBitDepthback to summary
public int minBitDepth()
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw chunk)

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
setEntryback to summary
public void setEntry(final int n, final int r, final int g, final int b)
setNentriesback to summary
public void setNentries(final int n)