A-Level Computer Science: Multimedia and Compression — Bitmaps, Vectors, Sound, RLE and Lossy against Lossless (lesson-prep guide for tutors)
- 2026-11-26
Students can recite width times height times depth over eight, but cannot say why one photograph exists at 36 MB and 3 MB, or why RLE does nothing for a photo. This chapter links bitmaps, vectors, sound and compression with four sets of numbers, because every format trades quality, size and loss.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| Bits and bytes | How many bytes are eight bits? | One, so divide the bit count by eight |
| Multiplication and units | What is a thousand times a thousand? | One million |
| Resolution | What does 1920 by 1080 mean? | 1920 pixels across and 1080 down, which is 2,073,600 pixels |
| Sampling | What is 44,100 samples a second called? | The sampling rate, the number of amplitude readings a second |
| Ratio | What ratio is 36 MB down to 3 MB? | Twelve to one |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-8 min | Opening check | Ask why one photograph has two sizes and why RLE fails on photos | Name the trade between quality, size and loss |
| 8-22 min | Bitmaps and file size | Pixels, image against screen resolution, colour depth, the size formula, print size | Calculate 36 MB and 13.33 inches |
| 22-34 min | Vector graphics | Drawing objects, properties, drawing list, scaling, when to use each | Calculate 1,920 bytes |
| 34-46 min | Sound | Sampling rate, sampling resolution, channels, quantisation error, file size | Calculate 31.75 MB |
| 46-56 min | Compression | RLE, lossy against lossless, how each file type is compressed and chosen | Calculate 10 characters and 12 to 1 |
| 56-60 min | Exit check | Three questions, set the homework | Work independently |
03 Teaching script (read it out)
Scene 1: Bitmaps: every pixel has to be written down
File size is pixels times bits per pixel over eight: 1920 times 1080 times 24 over eight gives 6,220,800 bytes, or 6.22 MB. Add a small file header holding width, height, depth and compression, which can be ignored at this level.
Drop to 8-bit depth and the same picture needs 2,073,600 bytes but only 256 colours, so banding appears. At 1 bit it needs 259,200 bytes and holds black and white. The rule: each doubling of depth doubles the size, while the number of colours is a power of two, so 8 bits is 256, 16 bits is 65,536 and 24 bits is 16,777,216.
Then resolution. A 4000 by 3000 photo holds twelve million pixels, which is 36,000,000 bytes or 36 MB at 24 bits. Printed at 300 dpi, 4000 over 300 gives 13.33 inches and 3000 over 300 gives 10; at 150 dpi it covers 26.67 by 20 inches but with half the dots an inch, so it looks soft.
Make students separate two terms: image resolution is how many pixels the picture has, screen resolution is how many squares the display has. Putting a 4000 by 3000 photo on a 1920 by 1080 screen downsamples it; blowing an 800 by 600 image up to full screen repeats pixels and shows jaggies.
Student task: how many bytes does a 1024 by 768 image take at 24, 8 and 4 bit depth?
A sentence you can read aloud: A bitmap is honest, every pixel must be paid for, so you can pick two of quality, resolution and file size.
Scene 2: Vector graphics: store the drawing, not the pixels
Size follows: 6 times 8 times 40 bytes, at about forty bytes a property, giving 1,920 bytes. The same picture as a 500 by 500 bitmap at 24 bits needs 750,000 bytes, about 391 times more.
Scaling is the real difference. A vector redraws the shapes at any size and the edges stay sharp; a bitmap repeats pixels and shows blocks.
Give the decision as a table: photographs, scans and complex gradients are bitmaps; logos, icons, typefaces, engineering drawings and anything needing a large print are vectors. The usual wrong answer is that vectors are always better, so add the other half: vectors cannot render photographic detail, and forcing a photo into vectors gives flat patches.
Student task: if the logo grows to 12 objects, roughly how many bytes is it, and does scaling it ten times change the file size?
A sentence you can read aloud: A vector stores the drawing, so scaling adds no pixels and loses no sharpness.
Scene 3: Sound: sampling rate and sampling resolution
CD quality: 44,100 Hz, 16 bits, stereo, three minutes or 180 seconds, so 44,100 times 16 times two times 180 over eight gives 31,752,000 bytes, which is 31.75 MB.
Halve the rate, halve the depth and go mono: 22,050 Hz, 8 bits, one channel, 180 seconds gives 3,969,000 bytes or 3.97 MB, which is eight times smaller. Three halvings multiply to one eighth.
Now the limits. Human hearing spans roughly 20 Hz to 20 kHz, and the sampling rate must exceed twice the highest frequency (Nyquist), so CD uses 44,100 Hz for a 22,050 Hz ceiling. A telephone uses 8,000 Hz, so its ceiling is 4,000 Hz and high notes disappear.
Resolution next. Eight bits split a two-volt range into 256 steps of 7.81 millivolts; four bits give 16 steps of 125 millivolts, which is audible as a hiss, called quantisation error. Too low a rate distorts pitch, too low a depth makes the sound rough.
Student task: how many bytes is 44,100 Hz, 16-bit mono for 60 seconds, and how many at 22,050 Hz, 8-bit mono?
A sentence you can read aloud: The rate sets the highest note you can keep and the depth sets the quietest detail, and both push the file size up.
Scene 4: Compression: RLE and the lossy line
RLE is the simplest lossless method: write a run of identical values as a count and a value. AAAABBBCCDAA is 12 characters and becomes 4A 3B 2C 1D 2A, five pairs and 10 characters, which is 83.3 per cent. But if every character differs, RLE grows the file, because each run still costs two characters.
Applied to a bitmap: 800 by 600 at 8-bit depth is 480,000 bytes; if each row holds only 12 runs of one colour, two bytes a run, the whole image is 600 rows times 12 runs times two, which is 14,400 bytes or 3.0 per cent. That picture is a logo, icon or line drawing; for a photo, where almost every pixel differs, RLE does nothing.
Lossy examples: the same 36 MB photo saved as JPEG becomes 3 MB, 12 to 1, with no obvious difference at normal viewing size, though detail is gone and saving again loses more. Sound is the same story: 31.75 MB of WAV becomes 2,880,000 bytes or 2.88 MB at 128 kbps, about 11.0 to 1.
Give the four choices plainly: plain text uses lossless (ZIP or text compression); photographs use lossy (JPEG) because detail is rich and small losses are invisible; icons, screenshots and line art use lossless (PNG or RLE) because flat colour compresses well and edges must stay crisp; music distribution uses lossy (MP3, AAC) while masters and archives stay lossless (FLAC, WAV).
Student task: to reach 1.5 MB from the same photo, what ratio is that, and is lossy or lossless the reasonable choice?
A sentence you can read aloud: Compression is not magic, it either finds repetition (lossless) or throws away what people cannot notice (lossy).
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Bitmap file size | 1920 by 1080 at 24 bits | width times height times depth over eight | 6,220,800 bytes, that is 6.22 MB |
| Print size | 4000 by 3000 pixels at 300 dpi | divide pixels by dpi to get inches | 13.33 by 10 inches |
| Vector size | 6 objects, 8 properties each, 40 bytes a property | objects times properties times bytes | 1,920 bytes, about 0.26 per cent of the bitmap |
| Sound file size | 44,100 Hz, 16 bits, stereo, 180 seconds | rate times depth times channels times seconds over eight | 31,752,000 bytes, that is 31.75 MB |
| Sampling ceiling | A rate of 8,000 Hz | half the rate is the highest restorable frequency | 4,000 Hz |
| RLE | 800 by 600 with 12 runs a row | two bytes a run, rows times runs times two | 14,400 bytes, 3.0 per cent of the original |
| Compression ratio | 36 MB photo to 3 MB | original over compressed | 12 to 1 |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| How many bytes is an 800 by 600 image at 8-bit depth? How many at 24-bit, and what is the ratio? | 480,000 bytes or 0.48 MB at 8-bit; 1,440,000 bytes or 1.44 MB at 24-bit; three times larger | Depth from 8 to 24 takes one byte a pixel to three |
| How many bytes is 44,100 Hz, 16-bit mono for 60 seconds? And 22,050 Hz, 8-bit mono? What is the ratio? | 5,292,000 bytes or 5.29 MB; 1,323,000 bytes or 1.32 MB; 4 times smaller | Halving rate and depth multiplies the two halves |
| A 4000 by 3000 photo at 24 bits is how many MB? Compressed to 3 MB, what is the ratio? To reach 1.5 MB, is lossy or lossless the reasonable choice, and why? | 36 MB; 12 to 1; 1.5 MB is 24 to 1, only lossy can reach it because lossless cannot discard detail | The ratio is original over compressed; lossless is limited by repetition in the data |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| Confusing screen and image resolution | Saying the photo is 1920 by 1080 because the screen is | The photo is 4000 by 3000 on its own; the screen is only a grid of display cells and scales the image. |
| Thinking double the depth means double the colours | Saying 16-bit gives twice the colours of 8-bit | 8 bits give 256 colours and 16 bits give 65,536, which is 256 times; only the file doubles. |
| Treating a higher sampling rate as simply better | Saying 88,200 Hz just sounds better | The file also doubles, and the ceiling rises from 22,050 to 44,100 Hz, which human hearing cannot use. |
| Assuming RLE shrinks any image | Saying a 36 MB photo shrinks with RLE | Photos have almost no repeated pixels, so RLE grows the file; use lossy or predictive compression, and keep RLE for flat graphics. |
07 Homework (paper, section and question numbers)
- A-Level Computer Science chapter index — every chapter in this subject
- All lesson-prep guides — the rest of the series
- Rework this chapter — practice questions 1 to 3: bitmap size, sound size, compression ratio
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| One formula | Bitmap size is width times height times depth over eight | Missing the division by eight means scene one must be redone |
| One number | Three minutes of CD audio is 31.75 MB | Saying a few MB means scene three must be redone |
| One decision | Photos use lossy, icons use lossless or vector | Saying lossy is always worse means scene four must be redone |
09 Tutor FAQ
How can a 36 MB photo compress to 3 MB without visible damage?
Eyes are sensitive to brightness and low-frequency detail and much less to fine high-frequency detail. JPEG splits the picture into blocks, converts each to frequencies, then coarsely quantises the high ones. At 12 to 1 most coefficients become zero, which is invisible at a normal viewing distance but shows as blocks and smears if enlarged or re-saved.
When is RLE the best choice?
When there are long runs of one value: flat-colour logos, icons, line drawings, faxes and simple animations. The example here reaches 3.0 per cent with 12 runs a row; on a photo, where most runs are a single pixel, each run still costs two bytes, so the file grows.
Is a higher sampling rate always better?
No. The restorable ceiling is half the rate, and 44,100 Hz already covers 22,050 Hz, above the limit of hearing. Going to 96,000 Hz more than doubles the file for a difference inaudible on normal equipment; studios use high rates for processing headroom, not for playback.
Find a tutor — freeTutor Registration →
A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.



