Pixels
Zoom right into a photo and it becomes little squares. Each is a pixel: the smallest dot of one colour. This kind of image is a bitmap.
Topic 5 Representing images
KS3 Computing · A picture is a grid of tiny squares called pixels. Each pixel's colour is stored as a binary number. More pixels and more colours make a better picture, and a bigger file.
Computer SystemsCambridge Lower Secondary Computing 0860
Say each word, then read what it means. Every one is in the glossary too.
Read it here, or open the study page below to go one step at a time with things to try.
Zoom right into a photo and it becomes little squares. Each is a pixel: the smallest dot of one colour. This kind of image is a bitmap.
Bits per pixel = colour depth. Same rule as before: n bits give 2ⁿ colours.
| Colour depth | Colours | Use |
|---|---|---|
| 1 bit | 2 | Black and white |
| 2 bits | 4 | Very early games |
| 8 bits | 256 | GIFs, retro graphics |
| 24 bits | about 16.7 million | Normal photos |
Screens mix three lights: Red, Green, Blue. Each gets 1 byte (0–255). 3 × 8 = 24 bits.
| Colour | Red | Green | Blue | Hex |
|---|---|---|---|---|
| Black | 0 | 0 | 0 | #000000 |
| White | 255 | 255 | 255 | #FFFFFF |
| Red | 255 | 0 | 0 | #FF0000 |
| Yellow | 255 | 255 | 0 | #FFFF00 |
| Orange | 255 | 128 | 0 | #FF8000 |
Why is red + green = yellow? Mixing light adds colours. Mixing paint takes them away. Screens make light.
Open the study page and go one step at a time.
One question at a time. The reason shows after each answer.