public class PngChunkPLTE extends PngChunkSingle
see http://www.w3.org/TR/PNG/#11PLTE
Critical chunk
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkPLTE(ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
PngChunk |
cloneForWrite(ImageInfo imgInfo)
Makes a copy of the chunk.
|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
int |
getEntry(int n) |
void |
getEntryRgb(int n,
int[] rgb) |
void |
getEntryRgb(int n,
int[] rgb,
int offset) |
int |
getNentries() |
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
int |
minBitDepth() |
void |
parseFromRaw(ChunkRaw chunk)
Parses raw chunk and fill inside data.
|
void |
setEntry(int n,
int r,
int g,
int b) |
void |
setNentries(int n) |
allowsMultiple, equals, hashCodecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic static final String ID
public PngChunkPLTE(ImageInfo info)
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunkgetOrderingConstraint in class PngChunkpublic ChunkRaw createRawChunk()
PngChunkcreateRawChunk in class PngChunkpublic void parseFromRaw(ChunkRaw chunk)
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 void setNentries(int n)
public int getNentries()
public void setEntry(int n,
int r,
int g,
int b)
public int getEntry(int n)
public void getEntryRgb(int n,
int[] rgb)
public void getEntryRgb(int n,
int[] rgb,
int offset)
public int minBitDepth()
Copyright © 2013. All rights reserved.