Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

Image Representation: Pixels and Colour Depth

3.3.6 Representing images

Aligned to the AQA 8525 specification

Level
Intermediate
Reading time
6 min
Published
3 June 2026
Updated
1 July 2026
On this page
  1. 1.Pixels and Bitmap Images
  2. 2.Image Dimensions
  3. 3.Colour Depth
  4. 4.Calculating Image File Size
  5. 5.Reading a Bitmap from Binary
  6. 6.How Resolution and Colour Depth Affect File Size
  7. 7.Common Exam Mistakes

Key takeaways

  • A bitmap image is a rectangular grid of pixels, and each pixel stores a single colour value as a binary number.
  • Colour depth is the number of bits used per pixel, and the number of possible colours is 2 to the power of the colour depth, so 8-bit depth gives 256 colours.
  • Uncompressed file size in bits equals width times height times colour depth; divide by 8 to convert the answer to bytes.
  • A pixel has no fixed physical size: the same 800 x 600 image looks sharp on a postcard but blocky on a billboard, even though the pixel count never changes.
  • Both resolution and colour depth affect file size; doubling either one doubles the size, and a high-resolution image with low colour depth can still look worse than the reverse.

Pixels and Bitmap Images

A pixel (picture element) is a single point in a digital image. Every digital image stored on a computer is made up of a rectangular grid of pixels — this type of image is called a bitmap.

Each pixel stores a single colour value as a binary number. When the pixels are small enough and packed tightly enough, the human eye perceives a continuous image rather than a grid of discrete dots.

PropertyWhat it means
PixelOne point in the image, storing one colour value
BitmapAn image stored as a grid of pixel colour values
Image dimensionsThe width and height of the grid, measured in pixels
Colour depthThe number of bits used to represent each pixel's colour

A black-and-white image uses 1 bit per pixel (0 = white, 1 = black). A full-colour image typically uses 24 bits per pixel — 8 bits each for red, green, and blue channels.

A pixel has no fixed physical size. The same 800 × 600 pixel image printed on a postcard looks sharp; stretched across a billboard it looks blocky. The number of pixels does not change — only the physical size of each one does.

Image Dimensions

An image's dimensions are expressed as width × height in pixels. Multiplying width by height gives the total pixel count — the number of individual colour values that must be stored.

Examples:

ImageWidth (px)Height (px)Total pixels
Thumbnail10010010,000
Standard HD1280720921,600
Full HD192010802,073,600
4K UHD384021608,294,400

A higher total pixel count captures more spatial detail. A 1920 × 1080 image contains roughly 200 times more pixels than a 100 × 100 thumbnail. However, resolution alone does not determine file size — colour depth also plays a critical role.

Colour Depth

Colour depth is the number of bits used to represent each pixel. More bits per pixel means more possible colour values, producing a more detailed and realistic image.

The number of possible colours is :

Colour depth (bits)Possible coloursExample use
12Black and white
416Early computer graphics
8256Simple web graphics
1665,536High colour
2416,777,216True colour (typical photographs)

Worked example — how many colours can a 4-bit image represent?

A 4-bit image can only assign one of 16 colours to each pixel. Switching to 8-bit doubles the number of bits but squares the number of available colours from 16 to 256.

Calculating Image File Size

The uncompressed file size of a bitmap image depends on three values: width, height, and colour depth.

Worked example — calculate the file size of a 200 × 300 image with 8-bit colour depth:

Worked example — calculate the file size of a 640 × 480 image with 24-bit colour depth:

The formula gives the uncompressed file size. Real image files (JPEG, PNG) are smaller because compression is applied — but the uncompressed value is what AQA 8525 expects you to calculate.

Worth saving these ideas?

Turn what you've read into instant revision cards. Free to get started.

Make flashcards

Reading a Bitmap from Binary

A black-and-white bitmap (1 bit per pixel) can be read directly from its binary data. Each bit maps to one pixel: 0 = white, 1 = black.

Worked example — decode this 4 × 4 bitmap:

RowBinaryPixels (W = white, B = black)
10000W W W W
20110W B B W
30110W B B W
40000W W W W

The pattern forms a 2 × 2 black square in the centre of an all-white frame.

Encoding works in reverse: given a pixel grid, write 0 for each white pixel and 1 for each black pixel, reading left to right across each row.

How Resolution and Colour Depth Affect File Size

Both resolution and colour depth affect file size proportionally — doubling either one doubles the file size.

ChangeEffect on file sizeEffect on quality
Double the width and height× 4 (quadruple)More spatial detail
Double the colour depth× 2 (double)More colour accuracy
Halve the colour depth÷ 2 (halve)Fewer colours, visible banding
Reduce resolutionDecreasesLoss of fine detail

Worked example — compare two versions of a 100 × 100 image:

VersionColour depthFile size
A8-bit
B24-bit

Version B stores the same number of pixels but uses three times the storage because each pixel carries three times as many bits. These trade-offs drive decisions about compression and storage in real systems.

Common Exam Mistakes

1. Forgetting to divide by 8

The formula gives the file size in bits. Divide by 8 to convert to bytes. Leaving the answer in bits will lose the mark.

2. Confusing colour depth with number of colours

Colour depth is measured in bits. Number of colours is . A colour depth of 8 bits gives 256 colours — not 8 colours.

3. Saying higher resolution always produces better quality

A high-resolution image with a low colour depth can look worse than a lower-resolution image with a high colour depth. Both dimensions of quality matter independently.

4. Misreading binary bitmaps

Read binary pixel data left to right, treating each bit as one pixel. The most common error is reading a 0 as black and a 1 as white — or vice versa to what the question specifies. Check the question's convention before decoding.

5. Using total pixel count as the file size

Total pixel count (width × height) is not the file size. File size also depends on colour depth. A 100 × 100 image with 1-bit colour is 1,250 bytes; the same resolution with 24-bit colour is 30,000 bytes.

Key terms

Pixel
A single point in a digital image that stores one colour value.
Bitmap
An image stored as a rectangular grid of pixel colour values.
Image dimensions
The width and height of the pixel grid, measured in pixels.
Colour depth
The number of bits used to represent each pixel's colour.
Total pixel count
Width multiplied by height, giving the number of individual colour values stored.
Resolution
The width and height of an image in pixels, determining how much spatial detail it can capture.

Frequently asked questions

Multiply width by height by colour depth to get the size in bits, then divide by 8 to convert to bytes. For example, a 200 x 300 image at 8-bit colour depth is (200 x 300 x 8) / 8 = 60,000 bytes. This formula gives the uncompressed size.

Colour depth is the number of bits used to represent each pixel, measured in bits. The number of possible colours is 2 to the power of the colour depth, so a colour depth of 8 bits gives 256 colours, not 8 colours.

No. A high-resolution image with a low colour depth can look worse than a lower-resolution image with a high colour depth, because resolution and colour depth are independent dimensions of quality and both matter.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

ASCII and Unicode: Character Encoding

Next

Representing Sound: Sampling Rate and Bit Depth

Related lessons

6 min

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.