TPNGImage help

PNG Delphi

Components > TChunkIHDR > Properties > BitDepth


Returns the current image bit depth.

property
BitDepth: Byte;

Description

Bitdepth is the number of bytes for each sample. It's not recommended to change this property since it won't realloc data. The possible bit depths for the different color types (ColorType property) are:

Color type Allowed
Bit Depths
Interpretation
COLOR_GRAYSCALE 1,2,4,8,16  Each pixel is a grayscale sample.
COLOR_RGB 8,16  Each pixel is an R,G,B triple.
COLOR_PALETTE 1,2,4,8 Each pixel is a palette index; a PLTE chunk must appear.
COLOR_GRAYSCALEALPHA 8,16 Each pixel is a grayscale sample, followed by an alpha sample.
COLOR_RGBALPHA 8,16 Each pixel is an R,G,B triple, followed by an alpha sample.