Question 1
4 marksA 20 × 12 bitmap uses four bits per pixel and a 32-byte header. Assume continuous packing, no palette or compression. Calculate its colour-code capacity, payload and total bytes.
Show solution and marking guidance
Indicative answer
- 2^4 = 16 codes.
- 240 pixels × 4 = 960 payload bits.
- 960/8 = 120 payload bytes.
- 120 + 32 = 152 bytes.