GCSE · Computer Science · OCR · Spec J277

Colour depth and resolution

Shrink a picture on your screen and its file doesn't shrink. Weird, right? Let's build a tiny picture and count the bits to see why.

Computer Science · Representing images

Every pixel costs the same

6 × 4 pixels · 2-bit

6 by 4 pixel grid, 2 bits per pixel, 4 colours. File size in bits: 48 bit

Paint
Colours4Bit depth2-bitFile size in bits48 bit
pick a colour, then tap a square

This picture is 6 pixels across and 4 pixels down, so its resolution is 6 × 4: 24 pixels in all. Every pixel holds a 2-bit code (00 cream, 01 navy, 10 red, 11 yellow), so the colour depth is 2 bits per pixel. Repaint as many squares as you like and keep an eye on the file size.

Work it out: a 600 × 400 image at 16 bits

600 × 400 = 240,000

Start with the resolution. 600 pixels across and 400 down is 240,000 squares in all. Same resolution, written two ways: 600 × 400, or just 240,000.

1 / 5

Computer Science · Working backwards

Now you fill in the gaps

A bitmap image has a colour depth of 16 bits and a file size of 12,000 bytes. What is its resolution as a total number of pixels?

  1. Turn the rule round: resolution = file size in bits ÷ colour depth. It needs the file size in bits.
  2. We have 12,000 bytes and 16 bits per pixel. The two are in different units, so the file size has to change first.
  3. missing step
Which line is step 3?

Computer Science · Representing images

Shrink it on screen. Does the file shrink?

Maya has a picture open on her screen. She drags its corner so the picture looks much smaller, then wonders what has happened to its file size.

Which is closest to what you think?
How sure are you?

Computer Science · Choosing settings

Does this job need high settings?

Sort each use: can lower resolution and colour depth be suitable, or is higher quality needed?

Still to sort

Lower settings can be suitable (0)

The smaller file is worth the lower quality

Where the line is: A low resolution or colour depth does not necessarily make an image unusable. It depends on the purpose.

Higher quality needed (0)

The quality is worth the bigger file

Where the line is: Higher resolution and colour depth improve quality but also increase the file size, so you accept a bigger file to get the quality.

5 of 5 still to sort.

Exam practice

Write it like an answer

Explain the trade-off involved in increasing the resolution or the colour depth of an image. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Every pixel costs the same number of bits, so a picture's file size comes down to one multiplication.

What you need to know

  • A bitmap image has two properties: resolution and colour depth.
  • Resolution is the number of pixels across multiplied by the number of pixels down, like 30 × 20.
  • Resolution can also be given as a total number of pixels: 30 × 20 is 600 pixels.
  • Have a goYour friend says an image 5 pixels across and 4 pixels down has a resolution of 9 pixels in total, because 5 + 4 = 9. What would you tell them?

    It is 5 × 4 = 20 pixels in total.

    Pixels fill a grid, so the across and down counts are multiplied, not added.

  • Colour depth is the number of bits used for each pixel to represent its colour.
  • File size in bits is the resolution multiplied by the colour depth.
  • Have a goA tiny image has 10 pixels in total and every pixel uses 3 bits. How many bits is the whole file?

    30 bits.

    File size in bits is resolution × colour depth, so 10 × 3. Every pixel costs the same 3 bits.

  • Bits to bytes: divide by 8. In this lesson, bytes to kilobytes: divide by 1,000.
  • Turn the rule round to find resolution: file size in bits divided by colour depth.
  • Raise the resolution or the colour depth and the file size goes up.
  • Have a goSame image, same pixels, but the colour depth is doubled from 2 bits to 4 bits. Predict what happens to the file size before you reveal.

    The file size doubles.

    Resolution × colour depth: double one factor and leave the other alone, and the result doubles.

  • Making the picture smaller on screen does not change the file size.
  • Higher quality costs file size, so choosing settings is a trade-off that depends on the purpose.

The big picture

A bitmap image has two properties. Resolution is the pixels across by the pixels down, written as dimensions like 600 × 400 or as a total like 240,000. Colour depth is the bits used for each pixel. File size in bits is resolution × colour depth; divide by 8 for bytes. Raising either property increases the file size, but shrinking the picture on screen does not. Higher quality costs file size, so the settings are a trade-off that depends on the purpose.

Key points

1Resolution is the pixels across multiplied by the pixels down. It can be written as dimensions, such as 30 × 20, or as a total number of pixels, such as 600.
2Colour depth is the number of bits used for each pixel to represent colours.
3File size in bits = resolution × colour depth. Divide by 8 to get bytes; in this lesson, divide by 1,000 again to get kilobytes.
4To find the resolution, divide the file size in bits by the colour depth. If the file size is in bytes, change it into bits first.
5Increasing the resolution or the colour depth increases the file size. Reducing the size of a picture on screen has no effect on it.
6Higher quality means a bigger file, so there is a trade-off. A low resolution or colour depth does not necessarily make an image unusable: it depends on the purpose.

Worked example

Problem

Image A is 100 pixels across and 100 down, with a colour depth of 8 bits. Image B is 200 pixels across and 200 down, with a colour depth of 2 bits. Which has the larger file size?

⚠ Watch out

Dividing a file size in bytes by the colour depth. Colour depth is in bits per pixel, so change the bytes into bits (× 8) first, then divide.

🧠

Memory hook

Count the squares, then count the bits in each square. Pixels × bits.

✓

Check yourself

A picture is 8 × 5 pixels with a colour depth of 4 bits. What is its file size in bits? What happens to it if you shrink the picture on screen?

Flashcards

(14)
What two properties does a bitmap image have?
Resolution and colour depth.
What is resolution?
The number of pixels across by the number of pixels down.
Two ways of giving a resolution?
As dimensions, like 30 × 20, or as the total number of pixels, like 600.
What is colour depth?
The number of bits used per pixel to represent colours.
How do you work out the file size of a bitmap image in bits?
Multiply the pixels in the image by the bits for each pixel.
How do you change bits into bytes?
Divide by 8, because one byte is 8 bits.
How do you change bytes into kilobytes in this lesson?
Divide by 1,000: here, 1 kilobyte is 1,000 bytes.
How do you find the resolution from a file size?
File size in bits ÷ colour depth. Change bytes into bits first if you need to.
What happens to the file size if you increase the resolution? And the colour depth?
It increases, whichever one you raise.
Does making a picture smaller on screen make its file smaller?
No. Reducing the physical size of an image on screen has no effect on its file size.
What is a trade-off?
Accepting a limitation to achieve a beneficial outcome.
What is the trade-off with higher resolution and colour depth?
Better image quality, but a bigger file size.
Does a low resolution or colour depth always make an image unusable?
No. It does not necessarily. It depends on the purpose.
Which uses can suit lower settings, and which need higher quality?
Lower can suit web use, icons and thumbnails. Higher quality is needed for printing and detailed graphics.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.