PngCs
1.1.4
A C# library for read/write PNG images
|
A Chunk type that allows duplicate in an image More...
Inherits Hjg.Pngcs.Chunks.PngChunk.
Inherited by Hjg.Pngcs.Chunks.PngChunkIDAT, Hjg.Pngcs.Chunks.PngChunkSPLT, Hjg.Pngcs.Chunks.PngChunkTextVar, and Hjg.Pngcs.Chunks.PngChunkUNKNOWN.
Public Member Functions | |
sealed override bool | AllowsMultiple () |
This is implemented in PngChunkMultiple/PngChunSingle | |
![]() | |
ChunkRaw | createEmptyChunk (int len, bool alloc) |
override String | ToString () |
Basic info: Id, length, Type name | |
abstract ChunkRaw | CreateRawChunk () |
Serialization. Creates a Raw chunk, ready for write, from this chunk content | |
abstract void | ParseFromRaw (ChunkRaw c) |
Deserialization. Given a Raw chunk, just rad, fills this chunk content | |
abstract void | CloneDataFromRead (PngChunk other) |
Override to make a copy (normally deep) from other chunk | |
abstract ChunkOrderingConstraint | GetOrderingConstraint () |
Get ordering constrain | |
Additional Inherited Members | |
![]() | |
enum | ChunkOrderingConstraint { NONE, BEFORE_PLTE_AND_IDAT, AFTER_PLTE_BEFORE_IDAT, BEFORE_IDAT, NA } |
Restrictions for chunk ordering, for ancillary chunks More... | |
![]() | |
static void | FactoryRegister (String chunkId, Type type) |
Registers a Chunk ID in the factory, to instantiate a given type | |
static T | CloneChunk< T > (T chunk, ImageInfo info) |
![]() | |
readonly String | Id |
4 letters. The Id almost determines the concrete type (except for PngUKNOWN) | |
readonly bool | Crit |
Standard basic properties, implicit in the Id | |
![]() | |
PngChunk (String id, ImageInfo imgInfo) | |
Constructs an empty chunk | |
![]() | |
readonly ImageInfo | ImgInfo |
Image basic info, mostly for some checks | |
![]() | |
bool | Priority [get, set] |
For writing. Queued chunks with high priority will be written as soon as possible | |
int | ChunkGroup [get, set] |
Chunk group where it was read or writen | |
int | Length [get, set] |
long | Offset [get, set] |
A Chunk type that allows duplicate in an image
|
virtual |
This is implemented in PngChunkMultiple/PngChunSingle
Implements Hjg.Pngcs.Chunks.PngChunk.