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

sPLT chunk: http://www.w3.org/TR/PNG/#11sPLT More...

Inherits Hjg.Pngcs.Chunks.PngChunkMultiple.

Public Member Functions

 PngChunkSPLT (ImageInfo info)
 
override ChunkOrderingConstraint GetOrderingConstraint ()
 Get ordering constrain
 
override ChunkRaw CreateRawChunk ()
 Serialization. Creates a Raw chunk, ready for write, from this chunk content
 
override void ParseFromRaw (ChunkRaw c)
 Deserialization. Given a Raw chunk, just rad, fills this chunk content
 
override void CloneDataFromRead (PngChunk other)
 Override to make a copy (normally deep) from other chunk
 
int GetNentries ()
 
- Public Member Functions inherited from Hjg.Pngcs.Chunks.PngChunkMultiple
sealed override bool AllowsMultiple ()
 This is implemented in PngChunkMultiple/PngChunSingle
 
- Public Member Functions inherited from Hjg.Pngcs.Chunks.PngChunk
ChunkRaw createEmptyChunk (int len, bool alloc)
 
override String ToString ()
 Basic info: Id, length, Type name
 

Public Attributes

const String ID = ChunkHelper.sPLT
 

Properties

String PalName [get, set]
 Must be unique in image
 
int SampleDepth [get, set]
 8-16
 
int[] Palette [get, set]
 5 elements per entry
 

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)
 
- 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
 

Detailed Description

sPLT chunk: http://www.w3.org/TR/PNG/#11sPLT

Constructor & Destructor Documentation

Hjg.Pngcs.Chunks.PngChunkSPLT.PngChunkSPLT ( ImageInfo  info)

Member Function Documentation

override ChunkOrderingConstraint Hjg.Pngcs.Chunks.PngChunkSPLT.GetOrderingConstraint ( )
virtual

Get ordering constrain

Returns

Implements Hjg.Pngcs.Chunks.PngChunk.

override ChunkRaw Hjg.Pngcs.Chunks.PngChunkSPLT.CreateRawChunk ( )
virtual

Serialization. Creates a Raw chunk, ready for write, from this chunk content

Implements Hjg.Pngcs.Chunks.PngChunk.

override void Hjg.Pngcs.Chunks.PngChunkSPLT.ParseFromRaw ( ChunkRaw  c)
virtual

Deserialization. Given a Raw chunk, just rad, fills this chunk content

Implements Hjg.Pngcs.Chunks.PngChunk.

override void Hjg.Pngcs.Chunks.PngChunkSPLT.CloneDataFromRead ( PngChunk  other)
virtual

Override to make a copy (normally deep) from other chunk

Parameters
other

Implements Hjg.Pngcs.Chunks.PngChunk.

int Hjg.Pngcs.Chunks.PngChunkSPLT.GetNentries ( )

Member Data Documentation

const String Hjg.Pngcs.Chunks.PngChunkSPLT.ID = ChunkHelper.sPLT

Property Documentation

String Hjg.Pngcs.Chunks.PngChunkSPLT.PalName
getset

Must be unique in image

int Hjg.Pngcs.Chunks.PngChunkSPLT.SampleDepth
getset

8-16

int [] Hjg.Pngcs.Chunks.PngChunkSPLT.Palette
getset

5 elements per entry