Bitmapped graphics — AQA A-Level Computer Science
Bitmapped graphics represent digital images as a grid of individual picture elements called pixels, where each pixel is stored as one or more binary bits depending on colour depth. In AQA A-Level Computer Science, understanding image resolution, colour depth, metadata, and file size calculations is essential for mastering digital data representation.
Bitmapped graphics explained
Colour depth is the number of bits used to store the colour of each individual pixel in a bitmap image.
Read the full explanation
Each bit doubles the number of colours that can be represented, so colour depth determines the size of the colour palette available. For example, a colour depth of 1 bit gives 2¹ = 2 colours, 8 bits gives 2⁸ = 256 colours, and 24 bits gives 2²⁴ = 16 777 216 colours. Because every pixel stores its colour using the same number of bits, the file size of an uncompressed bitmap is found by multiplying the number of pixels by the colour depth. Increasing colour depth therefore improves the realism of an image but increases the storage required. Students should be able to explain this trade-off and calculate the storage needed for a given image.
Your focus
- colour depth
Which command word is this?
Perform mathematical operations using specified data. You must show full working steps including formulas and correct units (e.g. bytes, KiB, MiB) to obtain all available method and answer marks.
Bitmapped graphics exam tips
Topic Overview
Bitmapped graphics (often called raster graphics) represent images as a rectangular grid of pixels, where each individual pixel is mapped to a specific binary value determined by colour depth. This topic forms a foundational pillar of data representation in AQA A-Level Computer Science, bridging mathematical binary logic with real-world multimedia systems.
Understanding bitmapped images requires students to master the relationship between spatial resolution, colour depth, storage capacity, and metadata. It also underpins subsequent study of data compression techniques (such as RLE and Huffman coding) and vector graphics comparisons.
Key Concepts
- →Pixel: The smallest addressable unit of a bitmapped image, positioned at specific coordinates within a 2D matrix.
- →Colour Depth (Bit Depth): The number of bits allocated to represent the colour of each individual pixel (where n bits allows 2^n unique colours).
- →Image Resolution: The concentration of pixels within a given dimension, commonly expressed as total pixel dimensions (e.g. 1920 x 1080) or dots/pixels per inch (DPI/PPI).
- →Metadata: Data stored alongside the raw pixel bits detailing structural information such as image dimensions, colour palette, colour space, and creation timestamp.
- →Vector vs Bitmapped Trade-off: Bitmapped graphics capture complex, photorealistic colour variations but suffer from pixelation when scaled and consume significant storage space compared to scalable, mathematically defined vector graphics.
Marking Points
- Defines colour depth as the number of bits used to represent the colour of a single pixel
- Calculates the number of colours as 2 raised to the power of the colour depth
- Explains that higher colour depth allows a wider range of colours and more realistic images
- Explains that higher colour depth increases the file size of an uncompressed bitmap
Examiner Tips
- 💡Check whether the question asks for bits, bytes or number of colours and convert accordingly
- 💡When calculating colours, state the working as 2 to the power of the colour depth
- 💡Link colour depth to file size and image quality in any answer about trade-offs
- 💡Show explicit unit conversions: write down the step where you divide bits by 8 to get bytes before converting to KiB or MiB to secure method marks.
- 💡When explaining why an enlarged bitmapped image loses quality, use the technical term 'pixelation' or explain that existing pixels are simply enlarged, revealing the underlying grid structure.
- 💡Remember to mention metadata whenever an exam question asks about the complete contents of an image file format.
Common Mistakes
- Confuses colour depth with the number of pixels in the image; correct by stating that colour depth is bits per pixel for colour, not the image dimensions
- Calculates the number of colours by multiplying the colour depth by two rather than raising two to the power of the colour depth; correct by using 2ⁿ
- Assumes that higher colour depth always reduces file size; correct by noting that more bits per pixel increases storage
- Believing that doubling image resolution simply doubles the file size. In reality, doubling both width and height quadruples the total pixel count and file size.
- Assuming file size calculated from raw pixels equals the exact file size on disk; students forget that file headers, colour profiles, and metadata add overhead, while compression algorithms reduce it.
- Confusing binary prefixes (kibi, mebi: powers of 2 / 1024) with decimal SI prefixes (kilo, mega: powers of 10 / 1000). AQA accepts both if clearly labeled, but binary units (KiB, MiB) are preferred in computer architecture contexts.
Revision Plan
- 1Day 1-2: Review core terminology (pixel, resolution, colour depth, metadata) and practice finding the number of colours from bit depth using 2^n.
- 2Day 3-4: Master raw image size calculations (width x height x colour depth), practicing conversions between bits, bytes, KiB, and MiB.
- 3Day 5-6: Compare bitmapped graphics with vector graphics, compiling a detailed contrast table focusing on scalability, file size, and typical use cases.
- 4Day 7: Attempt past-paper exam questions under timed conditions, paying close attention to command words like 'Calculate' and 'Discuss'.
Exam Question Types
- 📋Quantitative calculation questions: Calculating uncompressed file sizes, storage requirements, or transmission times over a given network bandwidth.
- 📋Comparative short-answer questions: Comparing the advantages and disadvantages of bitmapped images against vector graphics for a specific scenario (e.g. company logo vs photograph).
- 📋Technical definition and purpose questions: Explaining the role of metadata within an image file header and giving examples of specific metadata fields.
Command Word Expectations (AQA)
Perform mathematical operations using specified data. You must show full working steps including formulas and correct units (e.g. bytes, KiB, MiB) to obtain all available method and answer marks.
Set out purposes or reasons, make the relationships between things clear, and support assertions with relevant technological theory or cause-and-effect links.
Identify the similarities and differences between two concepts (e.g. bitmapped vs vector graphics), linking them explicitly back to the scenario provided rather than writing two separate essays.
How Students Lose Marks (Examiner Pitfalls)
Step-by-Step Worked Solutions
Question: An uncompressed bitmapped image has a resolution of 1920 x 1080 pixels and a colour depth of 24 bits. Calculate the minimum file size of the raw image data in mebibytes (MiB). Show all your working.
- 1.Step 1: Calculate the total number of pixels in the image: 1920 * 1080 = 2,073,600 pixels.
- 2.Step 2: Multiply total pixels by colour depth to find the total size in bits: 2,073,600 * 24 bits = 49,766,400 bits.
- 3.Step 3: Convert bits to bytes by dividing by 8: 49,766,400 / 8 = 6,220,800 bytes (or directly 2,073,600 * 3 bytes = 6,220,800 bytes).
- 4.Step 4: Convert bytes to mebibytes (MiB) using binary prefixes (divide by 1024^2 or 1,048,576): 6,220,800 / 1,048,576 = 5.932617... MiB.
Question: A monochrome icon measures 64 by 64 pixels. The designer wishes to increase the colour depth so that the icon can display up to 65,536 distinct colours. Calculate the increase in data size in bytes compared to the original monochrome version.
- 1.Step 1: Identify bits per pixel for monochrome: monochrome requires 1 bit per pixel (black and white). Size = 64 * 64 * 1 bit = 4,096 bits = 512 bytes.
- 2.Step 2: Determine new colour depth: 65,536 colours = 2^16, meaning 16 bits (or 2 bytes) per pixel.
- 3.Step 3: Calculate new image data size: 64 * 64 * 2 bytes = 8,192 bytes (or 65,536 bits).
- 4.Step 4: Calculate the increase in bytes: 8,192 bytes - 512 bytes = 7,680 bytes.