PngHeader

The first chunk in a PNG file is a header that contains this info

Members

Variables

compressionMethod
ubyte compressionMethod;

should be zero

depth
ubyte depth;

This is bits per channel - per color for truecolor or grey and per pixel for palette.

filterMethod
ubyte filterMethod;

should be zero

height
uint height;

Height of the image, in pixels.

interlaceMethod
ubyte interlaceMethod;

0 is non interlaced, 1 if Adam7. No more are defined in the spec

type
ubyte type;

Types from the PNG spec: 0 - greyscale 2 - truecolor 3 - indexed color 4 - grey with alpha 6 - true with alpha

width
uint width;

Width of the image, in pixels.

Meta