C# Class CSharpImageLibrary.Headers.PNG_Header.PNGChunk

Header Chunk containing specific PNG header information.
Datei anzeigen Open project: KFreon/CSharpImageLibrary

Public Properties

Property Type Description
CRC int
ChunkData byte[]
ChunkType int
Length int

Public Methods

Method Description
PNGChunk ( byte headerBlock, int offset = 8 ) : System

Reads a PNG header chunk.

Method Details

PNGChunk() public method

Reads a PNG header chunk.
public PNGChunk ( byte headerBlock, int offset = 8 ) : System
headerBlock byte Block of data containing headers.
offset int Offset in data to begin header.
return System

Property Details

CRC public_oe property

Cyclic Redundancy Check of chunk to determine validity. Doesn't include Length field. Always present regardless of chunk data presence.
public int CRC
return int

ChunkData public_oe property

Data in chunk.
public byte[] ChunkData
return byte[]

ChunkType public_oe property

Type of chunk.
public int ChunkType
return int

Length public_oe property

Length of chunk.
public int Length
return int