ExamYard Lectures

Representing images

IGCSE Computer Science 0478 · Chapter 1.7, Representing images · 6-minute lecture

The teaching part (1 min) is free to watch. A free account opens the whole lecture: 6 practice questions, 2 real past-paper questions with the answers explained, the mistakes that lose marks, the full-marks tip, a one-card summary and a quick quiz.

What this lecture covers

  1. A photo is a grid
  2. Pixel
  3. A black and white image
  4. Its size
  5. Colour depth
  6. More bits, more colours
Read the transcript of the teaching part

Last time

Before we start: last time, in Number systems, you learned these points. Here they are again on one card. Keep them in mind, because today builds on them.

A photo is a grid

Zoom right into any photo on your phone and you will see it is made of tiny squares. Each square is called a pixel. Each pixel is one single colour, and that colour is stored as a binary number.

Pixel

A pixel is the smallest part of an image. It is a single point of one colour. The word comes from picture element.

A black and white image

The simplest image is black and white. Each pixel needs just one bit: one for black, zero for white. Here is a smiley face, eight pixels by eight. Each row of the picture is one row of bits.

Its size

The smiley has eight rows of eight pixels: sixty-four pixels. Each pixel needs one bit, so the image is sixty-four bits. That is eight bytes.

Colour depth

To have more colours, each pixel needs more bits. The number of bits used for each colour is called the colour depth. With n bits, you can have two to the power n colours.

More bits, more colours

One bit gives two colours. Four bits give sixteen. Eight bits give two hundred and fifty-six. And twenty-four bits give over sixteen million colours: true colour, used for photographs.

Chapter 1.7: Representing images

Also for IGCSE Computer Science 0478

Which topics come up most in IGCSE Computer Science 0478 past papers, counted from every paper since 2004: Paper 1 topic frequency, Paper 2 topic frequency.

The topical past-paper books: Paper 1, Paper 2.