| 
    PngCs
    1.1.4
    
   A C# library for read/write PNG images 
   | 
 
Image Metadata, wrapper over a ChunksList More...
Public Member Functions | |
| void | QueueChunk (PngChunk chunk, bool lazyOverwrite) | 
| Queues the chunk at the writer  | |
| void | QueueChunk (PngChunk chunk) | 
| Queues the chunk at the writer  | |
| double[] | GetDpi () | 
| Returns physical resolution, in DPI, in both coordinates   | |
| void | SetDpi (double dpix, double dpiy) | 
| Sets physical resolution, in DPI   | |
| void | SetDpi (double dpi) | 
| Sets physical resolution, in DPI, both value in x and y dimensions   | |
| PngChunkTIME | SetTimeNow (int nsecs) | 
Creates a TIME chunk, nsecs in the past from now.   | |
| PngChunkTIME | SetTimeNow () | 
| Creates a TIME chunk with current time.   | |
| PngChunkTIME | SetTimeYMDHMS (int year, int mon, int day, int hour, int min, int sec) | 
| Creates a TIME chunk with given date and time   | |
| PngChunkTIME | GetTime () | 
| Gets image timestamp, TIME chunk   | |
| String | GetTimeAsString () | 
| Gets image timestamp, TIME chunk, as a String   | |
| PngChunkTextVar | SetText (String key, String val, bool useLatin1, bool compress) | 
| Creates a text chunk and enqueues it   | |
| PngChunkTextVar | SetText (String key, String val) | 
| Creates a plain text chunk (tEXT) and enqueues it   | |
| List< PngChunkTextVar > | GetTxtsForKey (String key) | 
| Retrieves all text chunks with a given key   | |
| String | GetTxtForKey (String key) | 
| Joins all strings for a given key   | |
| PngChunkPLTE | GetPLTE () | 
| PngChunkPLTE | CreatePLTEChunk () | 
| PngChunkTRNS | GetTRNS () | 
| PngChunkTRNS | CreateTRNSChunk () | 
Image Metadata, wrapper over a ChunksList
Additional image info, apart from the ImageInfo and the pixels themselves. Includes Palette and 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
| void Hjg.Pngcs.Chunks.PngMetadata.QueueChunk | ( | PngChunk | chunk, | 
| bool | lazyOverwrite | ||
| ) | 
Queues the chunk at the writer
| chunk | Chunk, ready for write | 
| lazyOverwrite | Ovewrite lazily equivalent chunks | 
Warning: the overwriting applies to equivalent chunks, see ChunkPredicateEquiv and will only make sense for queued (not yet writen) chunks 
| void Hjg.Pngcs.Chunks.PngMetadata.QueueChunk | ( | PngChunk | chunk | ) | 
Queues the chunk at the writer
| chunk | Chunk, ready for write | 
| double [] Hjg.Pngcs.Chunks.PngMetadata.GetDpi | ( | ) | 
Returns physical resolution, in DPI, in both coordinates
| void Hjg.Pngcs.Chunks.PngMetadata.SetDpi | ( | double | dpix, | 
| double | dpiy | ||
| ) | 
Sets physical resolution, in DPI
This is a utility method that creates and enqueues a PHYS chunk
| dpix | Resolution in x | 
| dpiy | Resolution in y | 
| void Hjg.Pngcs.Chunks.PngMetadata.SetDpi | ( | double | dpi | ) | 
Sets physical resolution, in DPI, both value in x and y dimensions
This is a utility method that creates and enqueues a PHYS chunk
| dpi | Resolution in dpi | 
| PngChunkTIME Hjg.Pngcs.Chunks.PngMetadata.SetTimeNow | ( | int | nsecs | ) | 
Creates a TIME chunk, nsecs in the past from now. 
| nsecs | Seconds in the past. If negative, it's a future time | 
| PngChunkTIME Hjg.Pngcs.Chunks.PngMetadata.SetTimeNow | ( | ) | 
Creates a TIME chunk with current time.
| PngChunkTIME Hjg.Pngcs.Chunks.PngMetadata.SetTimeYMDHMS | ( | int | year, | 
| int | mon, | ||
| int | day, | ||
| int | hour, | ||
| int | min, | ||
| int | sec | ||
| ) | 
Creates a TIME chunk with given date and time
| year | Year | 
| mon | Month (1-12) | 
| day | Day of month (1-31) | 
| hour | Hour (0-23) | 
| min | Minute (0-59) | 
| sec | Seconds (0-59) | 
| PngChunkTIME Hjg.Pngcs.Chunks.PngMetadata.GetTime | ( | ) | 
Gets image timestamp, TIME chunk
| String Hjg.Pngcs.Chunks.PngMetadata.GetTimeAsString | ( | ) | 
Gets image timestamp, TIME chunk, as a String
| PngChunkTextVar Hjg.Pngcs.Chunks.PngMetadata.SetText | ( | String | key, | 
| String | val, | ||
| bool | useLatin1, | ||
| bool | compress | ||
| ) | 
Creates a text chunk and enqueues it
| key | Key. Short and ASCII string | 
| val | Text. | 
| useLatin1 | Flag. If false, will use UTF-8 (iTXt) | 
| compress | Flag. Uses zTXt chunk. | 
| PngChunkTextVar Hjg.Pngcs.Chunks.PngMetadata.SetText | ( | String | key, | 
| String | val | ||
| ) | 
Creates a plain text chunk (tEXT) and enqueues it
| key | Key | 
| val | Text | 
| List<PngChunkTextVar> Hjg.Pngcs.Chunks.PngMetadata.GetTxtsForKey | ( | String | key | ) | 
Retrieves all text chunks with a given key
| key | Key | 
Can mix tEXt zTXt and iTXt chunks
| String Hjg.Pngcs.Chunks.PngMetadata.GetTxtForKey | ( | String | key | ) | 
Joins all strings for a given key
| key | Key | 
You'd perhaps prefer GetTxtsForKey
| PngChunkPLTE Hjg.Pngcs.Chunks.PngMetadata.GetPLTE | ( | ) | 
| PngChunkPLTE Hjg.Pngcs.Chunks.PngMetadata.CreatePLTEChunk | ( | ) | 
| PngChunkTRNS Hjg.Pngcs.Chunks.PngMetadata.GetTRNS | ( | ) | 
Returns the TRNS chunk, if present
| PngChunkTRNS Hjg.Pngcs.Chunks.PngMetadata.CreateTRNSChunk | ( | ) | 
Creates a new empty TRNS chunk, queues it for write and return it to the caller, who should fill its entries
 1.8.2