How are bitmap images and sampled sound represented in binary, and what limits this representation?
Understand how bitmap images are represented in binary (pixels, resolution, colour depth), how analogue sound is represented in binary (amplitude, sample rate, bit depth, sample interval), and the limitations of binary representation when constrained by the number of available bits.
A focused answer to Edexcel GCSE Computer Science 2.2.2, 2.2.3 and 2.2.4, covering bitmap images (pixels, resolution, colour depth), sampled sound (amplitude, sample rate, bit depth, sample interval), and the limitations of binary representation.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
Edexcel wants you to explain how bitmap images are stored as binary (pixels, resolution, colour depth) and how analogue sound is captured as binary by sampling (amplitude, sample rate, bit depth, sample interval), to calculate file sizes for both, and to explain the limitations that come from having only a fixed number of bits.
Representing bitmap images
The colour depth controls the palette: with a colour depth of bits, each pixel can be one of colours. So 1 bit gives 2 colours (black and white), 8 bits give 256 colours, and 24 bits give over 16 million colours. Resolution controls the detail: more pixels capture finer detail. Both resolution and colour depth raise quality but increase file size, which is the trade-off Edexcel tests. Real image files also store metadata (data about the image, such as its width, height, colour depth and the date taken) so the file can be displayed correctly.
Representing sound
Each sample records the amplitude at that instant as a binary number, and playing the samples back in order recreates the sound. The two quality controls are the sample rate (more samples per second means the digital version follows the original wave more closely) and the bit depth (more bits per sample means the amplitude is recorded more precisely, with more possible levels, for bits). The sample interval is just the reciprocal of the sample rate: a sample rate of 8000 per second means a sample interval of of a second.
Limitations of binary representation
This limitation is a recurring exam theme. A digital image can only ever show the colours its colour depth allows, so a 1-bit image cannot show grey. A sampled sound can only ever record the amplitude levels its bit depth allows, and only at the moments it samples, so very fast changes between samples are missed. Increasing the bits improves the match to the original but uses more storage, which is exactly why file sizes grow with quality.
Try this
Q1. Calculate the file size in bits of a image with a colour depth of 4 bits. [2 marks]
- Cue. bits.
Q2. State one effect of increasing the bit depth of a sound recording. [1 mark]
- Cue. It records each sample's amplitude more precisely (higher quality) but increases the file size.
Exam-style practice questions
Practice questions written in the style of Pearson Edexcel exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Edexcel 20234 marksA bitmap image is 64 pixels wide and 48 pixels high with a colour depth of 4 bits. Calculate the file size of the image in bytes. Show your working.Show worked answer →
The size in bits is width times height times colour depth, then divide by 8 for bytes.
Bits: bits. Bytes: bytes.
Markers reward the correct formula (width times height times colour depth), the correct bit total (12288), and the conversion to 1536 bytes by dividing by 8. Forgetting the divide-by-8 or using the wrong colour depth are the usual errors.
Edexcel 20224 marksA 10-second sound clip is sampled at 8000 samples per second with a bit depth of 8 bits. Calculate the file size in kilobytes (1 kilobyte = 1000 bytes), and state one effect of increasing the sample rate.Show worked answer →
Size in bits is sample rate times bit depth times duration, then divide by 8 for bytes.
Bits: bits. Bytes: bytes. Kilobytes: kilobytes.
Increasing the sample rate takes more samples per second, so the recording is a closer match to the original analogue sound (higher quality), but it increases the file size.
Markers reward the formula, the correct arithmetic to 80 kB, and a valid effect of a higher sample rate (better quality but larger file).
Related dot points
- Understand how computers encode characters using 7-bit ASCII.
A focused answer to Edexcel GCSE Computer Science 2.2.1, covering how computers encode characters using a character set, the 7-bit ASCII system, its 128 codes, and the ordering of letters and digits.
- Understand that computers use binary to represent data (numbers, text, sound, graphics) and program instructions, and determine the maximum number of states that can be represented by a binary pattern of a given length.
A focused answer to Edexcel GCSE Computer Science 2.1.1, covering why computers use binary to represent all data and instructions, and how to calculate the maximum number of states a binary pattern of a given length can represent.
- Understand that data storage is measured in binary multiples (bit, nibble, byte, kibibyte, mebibyte, gibibyte, tebibyte), construct expressions to calculate file sizes and data capacity, and understand the need for and methods of compression (lossless, lossy).
A focused answer to Edexcel GCSE Computer Science 2.3.1 and 2.3.2, covering the binary storage multiples (bit, nibble, byte, kibibyte up to tebibyte), file-size and capacity calculations, and lossy and lossless compression.
- Understand why hexadecimal notation is used and convert between hexadecimal and binary.
A focused answer to Edexcel GCSE Computer Science 2.1.6, covering why hexadecimal notation is used as a shorthand for binary and how to convert between hexadecimal, binary and denary.
- Understand how computers represent and manipulate unsigned integers and two's complement signed integers, and convert between denary and 8-bit binary numbers (0 to 255, and -128 to +127).
A focused answer to Edexcel GCSE Computer Science 2.1.2 and 2.1.3, covering unsigned and two's complement signed integers and converting between denary and 8-bit binary (0 to 255 and -128 to +127).
Sources & how we know this
- Pearson Edexcel GCSE (9-1) Computer Science (1CP2) specification — Pearson (2020)