public class PngChunkSPLT extends PngChunkMultiple
see http://www.w3.org/TR/PNG/#11sPLT
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkSPLT(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 |
getNentries() |
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
int[] |
getPalette() |
String |
getPalName() |
int |
getSampledepth() |
void |
parseFromRaw(ChunkRaw c)
Parses raw chunk and fill inside data.
|
void |
setPalette(int[] palette) |
void |
setPalName(String palName) |
void |
setSampledepth(int sampledepth) |
allowsMultiplecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, setPriority, toStringpublic static final String ID
public PngChunkSPLT(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 getNentries()
public String getPalName()
public void setPalName(String palName)
public int getSampledepth()
public void setSampledepth(int sampledepth)
public int[] getPalette()
public void setPalette(int[] palette)
Copyright © 2013. All rights reserved.