A bitmap is a grid of pixel values
A pixel is one picture element. A bitmap stores a value for every pixel in a rectangular grid, using an agreed colour code. The number of pixels across and down determines the pixel dimensions.
Colour depth is the number of bits allocated to each pixel. A depth of d bits permits up to 2ᵈ different colours. Increasing colour depth gives more colour choices; it does not add pixels.
| Code | 00 | 01 | 10 | 11 |
|---|---|---|---|---|
| Colour | white | red | blue | black |
Read one four-pixel row
- Stored row: 00 10 10 11.
- Read each two-bit group using the key: white, blue, blue, black.
A code has meaning only when its colour mapping and pixel order are known.
Calculate the uncompressed pixel data
For uncompressed bitmap pixel data, size in bits = width in pixels × height in pixels × colour depth in bits. Divide by 8 for bytes. Use the unit conversion stated in the question.
The formula excludes file headers and metadata unless the question supplies their size. Do not add compression assumptions to an uncompressed calculation.
A 320 × 200 image at 8 bits per pixel
- Pixels: 320 × 200 = 64,000.
- Bits: 64,000 × 8 = 512,000.
- Bytes: 512,000 ÷ 8 = 64,000 bytes = 64 kB using 1 kB = 1,000 bytes.
Eight bits per pixel permits up to 256 colours.
Explain exactly what changed
More pixels can capture finer spatial detail at the same displayed size. More bits per pixel can represent more distinct colours and smoother colour transitions. Either change increases uncompressed storage if the other factors stay fixed.
Doubling both pixel dimensions multiplies the pixel count by four, not two. Reducing colour depth can lose colour distinctions even when the image dimensions stay unchanged.
OCR focus
OCR: metadata describes how to interpret the image
Metadata is data about the image, such as its width, height, colour depth and file format. A viewer needs the relevant descriptive information to interpret the stored pixel values correctly. It is distinct from the pixel values themselves.
Continue with your exam board
The course combines lesson videos, interactive activities, topic questions and original exam mocks. Sign in to use the learning tools and save your progress; your account’s course access applies.
Independent learning resources. Not endorsed by AQA or OCR. These public introductions complement the full course and the official specification.