PngCs  1.1.4
A C# library for read/write PNG images
Public Member Functions | List of all members
Hjg.Pngcs.Chunks.PngChunkSingle Class Reference

A Chunk type that does not allow duplicate in an image More...

Inherits Hjg.Pngcs.Chunks.PngChunk.

Inherited by Hjg.Pngcs.Chunks.PngChunkBKGD, Hjg.Pngcs.Chunks.PngChunkCHRM, Hjg.Pngcs.Chunks.PngChunkGAMA, Hjg.Pngcs.Chunks.PngChunkHIST, Hjg.Pngcs.Chunks.PngChunkICCP, Hjg.Pngcs.Chunks.PngChunkIEND, Hjg.Pngcs.Chunks.PngChunkIHDR, Hjg.Pngcs.Chunks.PngChunkOFFS, Hjg.Pngcs.Chunks.PngChunkPHYS, Hjg.Pngcs.Chunks.PngChunkPLTE, Hjg.Pngcs.Chunks.PngChunkSBIT, Hjg.Pngcs.Chunks.PngChunkSRGB, Hjg.Pngcs.Chunks.PngChunkSTER, Hjg.Pngcs.Chunks.PngChunkTIME, and Hjg.Pngcs.Chunks.PngChunkTRNS.

Public Member Functions

 PngChunkSingle (String id, ImageInfo imgInfo)
 
sealed override bool AllowsMultiple ()
 This is implemented in PngChunkMultiple/PngChunSingle
 
override int GetHashCode ()
 
override bool Equals (object obj)
 
- Public Member Functions inherited from Hjg.Pngcs.Chunks.PngChunk
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

- Public Types inherited from Hjg.Pngcs.Chunks.PngChunk
enum  ChunkOrderingConstraint {
  NONE, BEFORE_PLTE_AND_IDAT, AFTER_PLTE_BEFORE_IDAT, BEFORE_IDAT,
  NA
}
 Restrictions for chunk ordering, for ancillary chunks More...
 
- Static Public Member Functions inherited from Hjg.Pngcs.Chunks.PngChunk
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)
 
- Public Attributes inherited from Hjg.Pngcs.Chunks.PngChunk
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
 
- Protected Member Functions inherited from Hjg.Pngcs.Chunks.PngChunk
 PngChunk (String id, ImageInfo imgInfo)
 Constructs an empty chunk
 
- Protected Attributes inherited from Hjg.Pngcs.Chunks.PngChunk
readonly ImageInfo ImgInfo
 Image basic info, mostly for some checks
 
- Properties inherited from Hjg.Pngcs.Chunks.PngChunk
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]
 

Detailed Description

A Chunk type that does not allow duplicate in an image

Constructor & Destructor Documentation

Hjg.Pngcs.Chunks.PngChunkSingle.PngChunkSingle ( String  id,
ImageInfo  imgInfo 
)

Member Function Documentation

sealed override bool Hjg.Pngcs.Chunks.PngChunkSingle.AllowsMultiple ( )
virtual

This is implemented in PngChunkMultiple/PngChunSingle

Returns
Allows more than one chunk of this type in a image

Implements Hjg.Pngcs.Chunks.PngChunk.

override int Hjg.Pngcs.Chunks.PngChunkSingle.GetHashCode ( )
override bool Hjg.Pngcs.Chunks.PngChunkSingle.Equals ( object  obj)