Year 9 · Data representation · original lesson pack
DASKEREL beta · internal AI review pending
Encode a small bitmap as binary pixel values
Open this lesson's library recordOfficial curriculum or provision guidance
DASKEREL wrote this teaching and practice using Oak's sequence as a source. View the source lesson at Oak National Academy. Oak has not endorsed this material. Check Oak's terms and separate rights for third-party works.
Learning outcomes
- Explain how pixel coordinates and colour codes represent a bitmap
- Decode a small black-and-white image and identify what metadata is needed
Vocabulary: bitmap · pixel · coordinate · bit depth · metadata
Retrieve previous learning
What values can one binary digit store?
Check: One bit has two possible values, 0 and 1.
Learn the concept
A bitmap records a rectangular grid of picture elements called pixels. To decode a sequence of pixel values, the reader must know the grid width, height, order and colour interpretation. In a one-bit classroom example, let 0 mean white and 1 mean black; actual file formats also specify their own encoding and metadata.
Read rows left to right, top to bottom. The twelve-bit pattern 010 / 111 / 101 / 101 is a four-row, three-column image if the rows are separated as shown. Its first row has a black centre pixel, and its second row is entirely black. The same twelve bits could form a different picture at width four, which shows why dimensions matter.
One bit per pixel offers two coded values, not necessarily black and white unless the palette says so. With n bits per pixel, up to 2^n distinct codes can be represented. A four-pixel row at two bits per pixel could encode 00, 01, 10, 11: four codes, whose visible colours still depend on the palette. Use an original pixel drawing and add text that conveys essential information.
Worked model
- Declare a three-column by four-row grid with 0 white and 1 black.
- Split 010111101101 into four groups: 010, 111, 101, 101.
- Plot each group on its own row and check the count is 3 × 4 = 12 pixels.
- Record dimensions, row order and palette alongside the bits so another person can decode the same image.
Guided practice
Decode 101 / 010 for a three-column, two-row grid where 1 is black.
Hint: Draw two rows in the stated order.
Check the guided answer
The first row has black pixels at left and right; the second has a black centre pixel. There are six pixels and six bits.
Independent practice
Write your own response to every question before viewing the model answers. Your writing stays in this page session; this activity does not submit, store or grade it. Avoid including private information.
Teacher observed practical evidence
A teacher must apply the school's risk assessment, allergy policy and any individual healthcare plan before the practical. Observe and record the criteria during supervised work. Written answers cannot certify practical safety or skill.
- Teacher observes an original image or audio edit in a school-approved tool, including save and export.
- Learner shows the source and exported versions, explains one deliberate change and verifies rights to any imported material.
- The result is checked at target quality and with an accessible equivalent where needed.
Find and correct a misconception
“The pixel bit string alone always defines the displayed picture.”
Correction: Dimensions, order and palette determine how those bits become a grid and visible colours.
Extend and reflect
How many distinct codes can three bits per pixel represent?
Guidance: Calculate 2³ = 8 codes; a format's palette determines their colours, and a larger code count does not create extra pixels.
Where this lesson could lead · Computer Science GCSE → Daskerel Computing and AI
This lesson practises: Explain how pixel coordinates and colour codes represent a bitmap. Algorithms, digital systems and safe practice support later software and technology work.
- Next school subject: Computer Science GCSE. Check the subject and examination board that fit your school.
- Later DASKEREL learning: Daskerel Computing and AI. Explore further study and build evidence from practical work.
- Later credential exploration: AWS Certified Developer - Associate is an example in this later specialism. Check current awarding-body requirements before planning an exam.
- Example career direction: Software Engineer. Explore organisations and local support.
This is an exploratory route, not a promise of admission, a qualification, certification eligibility or employment. Years 7–9 learning is an early foundation; any later credential may require substantial study, experience or local approval.