| Value | Description |
|---|---|
| 0x01 | Each pixel has red, green, and blue samples. |
| 0x02 | Each pixel has red, green, and blue samples, and an alpha value. |
| 0xFF | A mask for the colortype flags. |
| 0x01 << 16 | Each sample has 8 bits. |
| 0x0f << 16 | A mask for the sample width flags. |
| 0x01 << 24 | The pixel data is in raw form. |
| 0x02 << 24 | The pixel data is run-length encoded. Runs may be up to 127 bytes long; their length is stored in a single byte preceding the pixel data for the run. If a run is constant, its length byte has the high bit set and the pixel data consists of a single pixel which must be repeated. |
| 0x0f << 24 | A mask for the encoding flags. |