This includes the palette (if present) and all the ancillary chunks
This class provides a wrapper over the collection of chunks of a image (read or to write) and provides some high level methods to access them
| Modifier and Type | Field and Description |
|---|---|
| private final ChunksList | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PngChunkPLTE | createPLTEChunk()
Creates a new empty palette chunk, queues it for write and return it to the caller, who should fill its entries |
| public PngChunkTRNS | createTRNSChunk()
Creates a new empty TRNS chunk, queues it for write and return it to the caller, who should fill its entries |
| private ChunksListForWrite | |
| public double[] | |
| public PngChunkPLTE | |
| public PngChunkTIME | |
| public String | |
| public PngChunkTRNS | |
| public String | |
| public List | getTxtsForKey(final String k)
gets all text chunks with a given key returns null if not found Warning this does not check the "lang" key of iTxt |
| public void | queueChunk(final PngChunk c, final boolean lazyOverwrite)
Queues the chunk at the writer lazyOverwrite: if true, checks if there is a queued "equivalent" chunk and if so, overwrites it. |
| public void | |
| public void | |
| public void | |
| public PngChunkTextVar | |
| public PngChunkTextVar | |
| public PngChunkTIME | Returns: Returns the created-queued chunk, just in case you want to examine or modify itCreates a time chunk with current time, less secsAgo seconds
|
| public PngChunkTIME | |
| public PngChunkTIME | Returns: Returns the created-queued chunk, just in case you want to examine or modify itCreates a time chunk with diven date-time
|
| chunkList | back to summary |
|---|---|
| private final ChunksList chunkList | |
| readonly | back to summary |
|---|---|
| private final boolean readonly | |
| PngMetadata | back to summary |
|---|---|
| public PngMetadata(final ChunksList chunks) | |
| createPLTEChunk | back to summary |
|---|---|
| public PngChunkPLTE createPLTEChunk() Creates a new empty palette chunk, queues it for write and return it to the caller, who should fill its entries | |
| createTRNSChunk | back to summary |
|---|---|
| public PngChunkTRNS createTRNSChunk() Creates a new empty TRNS chunk, queues it for write and return it to the caller, who should fill its entries | |
| getChunkListW | back to summary |
|---|---|
| private ChunksListForWrite getChunkListW() | |
| getDpi | back to summary |
|---|---|
| public double[] getDpi() returns -1 if not found or dimension unknown | |
| getPLTE | back to summary |
|---|---|
| public PngChunkPLTE getPLTE() Returns the palette chunk, if present
| |
| getTime | back to summary |
|---|---|
| public PngChunkTIME getTime() null if not found | |
| getTimeAsString | back to summary |
|---|---|
| public String getTimeAsString() | |
| getTRNS | back to summary |
|---|---|
| public PngChunkTRNS getTRNS() Returns the TRNS chunk, if present
| |
| getTxtForKey | back to summary |
|---|---|
| public String getTxtForKey(final String k) Returns empty if not found, concatenated (with newlines) if multiple! - and trimmed Use getTxtsForKey() if you don't want this behaviour | |
| getTxtsForKey | back to summary |
|---|---|
| public List gets all text chunks with a given key returns null if not found Warning this does not check the "lang" key of iTxt
| |
| queueChunk | back to summary |
|---|---|
| public void queueChunk(final PngChunk c, final boolean lazyOverwrite) Queues the chunk at the writer lazyOverwrite: if true, checks if there is a queued "equivalent" chunk and if so, overwrites it. However if that not check for already written chunks. | |
| queueChunk | back to summary |
|---|---|
| public void queueChunk(final PngChunk c) | |
| setDpi | back to summary |
|---|---|
| public void setDpi(final double x) | |
| setDpi | back to summary |
|---|---|
| public void setDpi(final double x, final double y) | |
| setText | back to summary |
|---|---|
| public PngChunkTextVar setText(final String k, final String val, final boolean useLatin1, final boolean compress) Creates a text chunk and queue it.
| |
| setText | back to summary |
|---|---|
| public PngChunkTextVar setText(final String k, final String val) | |
| setTimeNow | back to summary |
|---|---|
| public PngChunkTIME setTimeNow(final int secsAgo) Creates a time chunk with current time, less secsAgo seconds
| |
| setTimeNow | back to summary |
|---|---|
| public PngChunkTIME setTimeNow() | |
| setTimeYMDHMS | back to summary |
|---|---|
| public PngChunkTIME setTimeYMDHMS(final int yearx, final int monx, final int dayx, final int hourx, final int minx, final int secx) Creates a time chunk with diven date-time
| |