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

Wraps the raw chunk data More...

Public Member Functions

override String ToString ()
 Just id and length
 

Public Attributes

readonly int Length
 The length counts only the data field, not itself, the chunk type code, or the CRC. Zero is a valid length. Although encoders and decoders should treat the length as unsigned, its value must not exceed 2^31-1 bytes.
 
readonly byte[] IdBytes
 Chunk Id, as array of 4 bytes
 
byte[] Data
 Raw data, crc not included
 

Detailed Description

Wraps the raw chunk data

Short lived object, to be created while serialing/deserializing

Do not reuse it for different chunks

See http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html /remarks>

Member Function Documentation

override String Hjg.Pngcs.Chunks.ChunkRaw.ToString ( )

Just id and length

Returns

Member Data Documentation

readonly int Hjg.Pngcs.Chunks.ChunkRaw.Length

The length counts only the data field, not itself, the chunk type code, or the CRC. Zero is a valid length. Although encoders and decoders should treat the length as unsigned, its value must not exceed 2^31-1 bytes.

readonly byte [] Hjg.Pngcs.Chunks.ChunkRaw.IdBytes

Chunk Id, as array of 4 bytes

byte [] Hjg.Pngcs.Chunks.ChunkRaw.Data

Raw data, crc not included