public class PngChunkBKGD extends PngChunkSingle
see http://www.w3.org/TR/PNG/#11bKGD
This chunk structure depends on the image type
PngChunk.ChunkOrderingConstraint| Constructor and Description |
|---|
PngChunkBKGD(ImageInfo info) |
| Modifier and Type | Method and Description |
|---|---|
ChunkRaw |
createRawChunk()
Creates the physical chunk.
|
int |
getGray() |
PngChunk.ChunkOrderingConstraint |
getOrderingConstraint()
|
int |
getPaletteIndex() |
int[] |
getRGB() |
void |
parseFromRaw(ChunkRaw c)
Parses raw chunk and fill inside data.
|
void |
setGray(int gray)
Set gray value (0-255 if bitdept=8)
|
void |
setPaletteIndex(int i)
Set pallette index
|
void |
setRGB(int r,
int g,
int b)
Set rgb values
|
allowsMultiple, equals, hashCodecreateEmptyChunk, getChunkGroup, getLen, getOffset, getRaw, hasPriority, invalidateRawData, setPriority, toStringpublic static final String ID
public PngChunkBKGD(ImageInfo info)
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()
PngChunkgetOrderingConstraint in class PngChunkpublic ChunkRaw createRawChunk()
PngChunkcreateRawChunk in class PngChunkpublic void parseFromRaw(ChunkRaw c)
PngChunkparseFromRaw in class PngChunkpublic void setGray(int gray)
gray - public int getGray()
public void setPaletteIndex(int i)
public int getPaletteIndex()
public void setRGB(int r,
int g,
int b)
public int[] getRGB()
Copyright © 2014. All rights reserved.