C# Class CSharpImageLibrary.Headers.PNG_Header.PNGChunk

Header Chunk containing specific PNG header information.
Show file 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 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 property

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

ChunkType public property

Type of chunk.
public int ChunkType
return int

Length public property

Length of chunk.
public int Length
return int