Images: pixels, colour depth, resolution, metadata – OCR GCSE Computer Science lesson (J277)
Pupils learn to explain how a bitmap image is stored as pixels with binary colour codes, and describe how colour depth and resolution affect quality and file size.
Lesson 3 of 11 in unit 10.4 Characters, Images, Sound, Strings and Arrays, taught in Year 10, Spring 2. It answers one big question: How does a computer store a picture as binary?
By the end, pupils can explain how a bitmap image is stored as pixels with binary colour codes, and describe how colour depth and resolution affect quality and file size.
- The Build (the main task)
- Complete the binary encoding of the 6 × 6 stage icon using the 2-bit colour key: write the 12 bits for each of the six rows. Then explain how the icon's quality and file size would change if its colour depth were cut to 1 bit.
- Support version
- Part-filled grid: the colour key is given in binary and the first three rows are already encoded.
- Challenge
- Calculate how many colours 1, 4, 8 and 24 bits per pixel can show, and explain why photos use 24-bit colour.
- Real-world link
- The app shows a small pixel-art icon for each stage on the festival map.
- Key words
- Pixel, Resolution and Colour depth, each with a definition, an icon and a common mix-up on the key vocabulary slide.
- Misconceptions it tackles
- “Doubling the colour depth doubles the number of colours (4 bits → 8 colours, 8 bits → 16)”; “A higher resolution makes each pixel bigger”.
- OCR J277 specification
- 1.2.4 (data storage – characters: character sets, ASCII and Unicode, bits per character and the number of characters represented. Images: pixels, colour depth, resolution and metadata. Sound: sampling, sample rate, duration and bit depth, and their effect on quality and file size).
Every lesson follows the same Code & Commerce structure: a Bell Task recall starter, key vocabulary with definitions and icons, short teaching chunks with a check before pupils move on, The Build (one main task), challenge questions that get harder, and an exit question. Answers reveal one at a time on the slides, and everything is editable PowerPoint and Word.
Pupils can do it all on paper.
Also sold in the Characters, Images, Sound, Strings and Arrays unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for GCSE Computer Science (OCR)
See allPupils learn to explain how a character set gives each character a binary code, encode and decode text with ASCII, and compare ASCII and Unicode by bits per character and range.
Free sample lessonPupils learn to use concatenation, length, slicing, upper and lower case and ASCII conversion in Python and OCR Exam Reference Language to build and extract parts of strings.
How big will an image file be before we save it? One complete OCR GCSE Computer Science (J277) lesson with slides, worksheets and a lesson plan.
Written for the specifications named. Not endorsed by or affiliated with any exam board.