🎯 Learning Objectives
- Understand how bitmap images are represented in binary
- Explain the features of bitmap and vector image types
- Create a binary word to represent a simple bitmap image
- Create a bitmap image from a binary word
- Perform simple binary addition
1.1 What Are Bitmap Images?
📘 Key Term: Bitmap Image
A bitmap image is made up of a grid of tiny squares called pixels (short for picture elements). Each pixel is assigned a colour, and that colour is stored as a binary number.
Think of a bitmap image like a mosaic — thousands (or millions) of tiny coloured tiles arranged in a grid to form a picture. The more pixels you use, the more detailed (higher resolution) the image becomes.
How Colour Depth Affects Images
The number of bits per pixel determines how many colours are available. This is called the colour depth.
| Colour Depth | Bits Per Pixel | Number of Colours | Example |
|---|---|---|---|
| 1-bit | 1 | 2 (2¹) | Black and white only |
| 2-bit | 2 | 4 (2²) | Black, dark grey, light grey, white |
| 4-bit | 4 | 16 (2⁴) | Basic colour palette |
| 8-bit | 8 | 256 (2⁸) | GIF images |
| 24-bit | 24 | 16,777,216 (2²⁴) | True colour photographs |
1-Bit Images (Black and White)
In a 1-bit image, each pixel uses just 1 bit of data:
- 0 = White
- 1 = Black
Example: A Cross Symbol (8×8 pixels, 1-bit colour)
Pixel Grid:
Binary Representation:
Row 2: 0 0 1 0 1 0 0 0
Row 3: 0 0 1 1 1 1 0 0
Row 4: 0 0 0 1 1 0 0 0
Row 5: 0 1 1 1 1 1 1 0
Row 6: 0 0 0 1 1 0 0 0
Row 7: 0 0 0 1 1 0 0 0
Row 8: 0 0 1 0 0 1 0 0
Each row of 8 pixels becomes one byte (8 bits) of data.
2-Bit Images (Four Shades)
With 2 bits per pixel, we can represent four different values:
| Binary Code | Denary Value | Colour |
|---|---|---|
00 |
0 | White |
01 |
1 | Light Grey |
10 |
2 | Dark Grey |
11 |
3 | Black |
Example: 2-Bit Image (8×8 pixels)
Notice how 2-bit colour adds grey shades for more detail. Each pixel now needs 2 bits instead of 1.
📝 Activity 1.1 — Binary to Image
Convert this binary data into an 8×8 pixel image on graph paper. Use 1-bit colour (0 = white, 1 = black):
01000010 01000010 01000010 00000000
Challenge: Now create your own 8×8 image and write out its binary representation!
1.2 Vector Graphics
📘 Key Term: Vector Graphic
A vector graphic is made up of mathematical descriptions of shapes — using points (co-ordinates) and lines between them. Instead of storing individual pixels, vector files store instructions like "draw a circle at position (100, 50) with radius 30".
Bitmap vs Vector: The Key Differences
| Feature | Bitmap 🖼️ | Vector ✏️ |
|---|---|---|
| Made of | Pixels (tiny coloured squares) | Points, lines and mathematical shapes |
| When enlarged | Becomes pixelated (blurry/blocky) | Stays sharp (redrawn at new size) |
| File size | Usually larger (stores every pixel) | Usually smaller (stores co-ordinates only) |
| Photo-realistic? | Yes — great for photographs | No — better for logos, icons, diagrams |
| Common formats | JPEG, PNG, GIF, BMP | SVG, AI, EPS |
| Editing | Edit individual pixels | Edit shapes and objects |
What Happens When You Zoom In?
Quality is LOST
Quality is MAINTAINED
💡 Did You Know?
Company logos are almost always created as vector graphics. This means they can be printed on a tiny business card OR a massive billboard without losing any quality!
1.3 Binary Addition
In Year 7, you learned to convert between binary and denary. Now we'll learn how to add binary numbers together — just like adding denary numbers, but with only 0s and 1s!
The Rules of Binary Addition
| Calculation | Result | Explanation |
|---|---|---|
0 + 0 |
0 |
Nothing plus nothing = nothing |
0 + 1 |
1 |
Nothing plus one = one |
1 + 0 |
1 |
One plus nothing = one |
1 + 1 |
10 |
One plus one = two = 0 carry 1 |
1 + 1 + 1 |
11 |
Three in binary = 1 carry 1 |
⚠️ The Key Difference
In denary, 1 + 1 = 2. But in binary there is no digit "2"! So 1 + 1 = 10 (which means "write 0, carry 1" — just like 5 + 5 = 10 in denary).
Worked Example: Add 00110101 + 00011010
Step-by-step binary addition
0 0 1 1 0 1 0 1
+ 0 0 0 1 1 0 1 0
─────────────────
= 0 1 0 0 1 1 1 1
Verification: 53 + 26 = 79 ✓ (00110101 = 53, 00011010 = 26, 01001111 = 79)
📝 Activity 1.2 — Binary Addition Practice
Calculate the following binary additions. Check your answers by converting to denary first.
00001111 + 0000000101010101 + 0010101000110011 + 0000110001100100 + 00011001
📋 Chapter 1 Summary
- Bitmap images are made of pixels; each pixel's colour is stored as binary
- 1-bit colour = 2 colours; 2-bit = 4 colours; more bits = more colours
- Vector graphics use mathematical descriptions of shapes (points and lines)
- Bitmaps pixelate when enlarged; vectors stay sharp
- Bitmaps are better for photos; vectors are better for logos and diagrams
- Binary addition follows the same column method as denary, but 1 + 1 = 10 (carry 1)
✅ Check Your Understanding
1. What is a pixel?
2. How many colours can be represented with 2-bit colour depth?
3. What happens to a bitmap image when you enlarge it? Why?
4. Give two advantages of vector graphics over bitmap graphics.
5. Calculate: 01010110 + 00101001