Binary representation of images
CIE A-Level Computer ScienceΒ· Unit 1: Information RepresentationΒ· 15 min read
1. Core Concepts: Pixels, Resolution and Colour Depthβ β ββββ± 4 min
Pixel
Short for "picture element", the smallest individual unit of a bitmap image that stores colour information.
Example:
A 1920Γ1080 image contains 2,073,600 individual pixels.
Every pixel is assigned one or more bits to represent its colour. The number of bits used per pixel is called colour depth, and the total number of unique colours available is where is the colour depth.
Colour Depth
The number of bits used to store the colour value of a single pixel in a bitmap image. Higher colour depth produces more realistic colour gradients.
Example:
A 1-bit image has only 2 possible colours (usually black and white).
An image uses 24-bit colour depth. How many unique colours can it display?
- 1
Use the formula for total number of possible colours:
- 2
- 3
Substitute the given colour depth value of 24:
- 4
- 5
Calculate the result:
- 6
- 7
24-bit colour is often called "true colour" because it can reproduce almost all visible colours.
Exam tip:
Always check if the question asks for number of colours or number of bits β mix-ups are a common source of lost marks.
2. Calculating Bitmap Image File Sizeβ β β βββ± 5 min
The total file size of a bitmap image depends directly on its resolution (total number of pixels) and colour depth. The base formula for file size in bits is:
To convert to larger units, divide by 8 for bytes, 1024 for kilobytes, for megabytes, etc. CIE always uses binary prefixes (1 KB = 1024 bytes) for these calculations.
Calculate the file size (in kilobytes) of a 800Γ600 pixel image with 16-bit colour depth.
- 1
- Calculate total number of pixels:
- 2
- 3
- Calculate total file size in bits:
- 4
- 5
- Convert bits to bytes by dividing by 8:
- 6
- 7
- Convert bytes to kilobytes by dividing by 1024:
- 8
Exam tip:
Always show all working steps β you will get method marks for correct steps even if your final arithmetic is wrong.
3. Bitmap vs Vector Image Representationβ β β βββ± 4 min
Digital images are stored in two main formats, with very different binary representation approaches. CIE regularly asks to compare these formats and their use cases.
Bitmap (Raster) Image
An image stored as a grid of pixels, where each pixel stores its own individual colour value as binary.
Vector Image
An image stored as a set of binary-encoded mathematical descriptions of geometric primitives (lines, shapes, curves), not per-pixel colour values.
Property | Bitmap | Vector | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Scaling | Pixelates when scaled up | No quality loss when scaled | ||||||||||||||||||||||
File size | Large for high resolutions | Small for simple graphics | ||||||||||||||||||||||
B | e | s | t | f | o | r | ||||||||||||||||||
P | h | o | t | o | g | r | a | p | h | s | , | c | o | m | p | l | e | x | a | r | t | |||
L | o | g | o | s | , | d | i | a | g | r | a | m | s | , | l | i | n | e | a | r | t |
A designer needs a company logo that will be used on a business card and a large billboard. Which format should they use? Justify your answer.
- 1
- Identify the key requirement: the logo must be resized to very different dimensions without losing quality.
- 2
- Recall properties: Bitmap images store fixed pixel data, so scaling up causes pixelation. Vector images store shapes as mathematical properties, so they scale without quality loss.
- 3
- Conclusion: Vector format is the appropriate choice.
4. Common Pitfalls
Wrong move:
Forgetting to convert bits to bytes when asked for file size in bytes/KB/MB
Why:
The base file size formula gives a result in bits, not bytes. This is the most common error in this topic.
Correct move:
Always divide the total bit count by 8 before converting to larger storage units.
Wrong move:
Using 1000 instead of 1024 for unit conversion
Why:
CIE uses binary prefixes for all file size calculations in 9618, not decimal prefixes.
Correct move:
Use 1 KB = 1024 bytes, 1 MB = 1024 KB for all CIE questions.
Wrong move:
Claiming vector images are not stored as binary
Why:
All digital data is stored as binary β only the representation of the image differs.
Correct move:
State that vector geometric properties are encoded as binary, rather than per-pixel colour values.
Wrong move:
Calculating number of colours as instead of for colour depth
Why:
Each bit adds a factor of 2 to the number of possible combinations, not a linear addition.
Correct move:
Always use where is colour depth in bits.
Wrong move:
Confusing resolution and colour depth when describing image quality
Why:
Both affect quality, but they are separate concepts that are often tested in differentiation questions.
Correct move:
Resolution describes number of pixels (detail), colour depth describes number of bits per pixel (colour accuracy).
5. Quick Reference Cheatsheet
Concept | Key Fact / Formula |
|---|---|
Pixel | Smallest unit of bitmap image |
Number of colours | , = colour depth (bits) |
Bitmap file size (bits) | width Γ height Γ colour depth |
Bits β Bytes | Divide by 8 |
Bytes β Kilobytes | Divide by 1024 |
Best for photos | Bitmap |
Best for logos | Vector |
Lossless scaling | Vector |
6. Frequently Asked
Do I need to know decimal prefixes for file size?
No. CIE 9618 always uses binary prefixes: 1 KB = 1024 bytes, 1 MB = 1024 KB for all calculations.
Are vector images not stored as binary?
All digital data is stored as binary. Vector images just store geometric properties rather than per-pixel colour values, all of which are encoded as binary.
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2022 Β· 12
Calculate bitmap image file size
- 2023 Β· 11
Compare bitmap and vector images
- 2024 Β· 13
Explain effect of colour depth on quality
Going deeper
What's Next
Binary image representation is a core, frequently assessed topic for CIE 9618 Paper 1, building on your foundational knowledge of binary and data units. Short and medium answer questions on file size calculation and bitmap/vector comparison are almost guaranteed to appear, so mastering these concepts secures easy marks in the exam. Next, you will explore binary representation of other multimedia data types, before learning about data compression, which is used to reduce the storage size of images for transmission and saving.
