Skip to topic
    ← Back to course topics

    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

    1. 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
    1. 1Day 1-2: Review core terminology (pixel, resolution, colour depth, metadata) and practice finding the number of colours from bit depth using 2^n.
    2. 2Day 3-4: Master raw image size calculations (width x height x colour depth), practicing conversions between bits, bytes, KiB, and MiB.
    3. 3Day 5-6: Compare bitmapped graphics with vector graphics, compiling a detailed contrast table focusing on scalability, file size, and typical use cases.
    4. 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)
    Calculate

    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.

    Explain

    Set out purposes or reasons, make the relationships between things clear, and support assertions with relevant technological theory or cause-and-effect links.

    Compare

    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)
    Pitfall: Confusing colour depth with the total number of colours that can be represented, or using 1000 instead of 1024 (or vice versa without stating units) in file size conversions.
    ❌ Weak Answer (Loses Marks):An image with an 8-bit colour depth can store 8 colours.
    Example improved answer:An image with an 8-bit colour depth uses 8 bits per pixel, which allows for 2 to the power of 8 (256) distinct addressable colours.
    Examiner Tip: Always state the formula 2^n, where n is the colour depth (bits per pixel), to find the total number of unique colours available.
    Pitfall: Omitting metadata when explaining the total storage footprint of an image or failing to define what metadata contains.
    ❌ Weak Answer (Loses Marks):The image file size is just width times height times colour depth.
    Example improved answer:While image data size is calculated as width x height x colour depth, the complete file size also includes metadata. Metadata is data about data that stores properties such as dimensions (width and height in pixels), colour depth, resolution, file format, and date created, which allows the computer to interpret and render the binary stream correctly.
    Examiner Tip: When asked why an image file on disk is slightly larger than the calculated raw bitmap data, always cite the header information/metadata required to reconstruct the image.
    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. 1.Step 1: Calculate the total number of pixels in the image: 1920 * 1080 = 2,073,600 pixels.
    2. 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. 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. 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.
    Final Answer: 5.93 MiB (or 5.9326 MiB to 4 d.p.)

    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. 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. 2.Step 2: Determine new colour depth: 65,536 colours = 2^16, meaning 16 bits (or 2 bytes) per pixel.
    3. 3.Step 3: Calculate new image data size: 64 * 64 * 2 bytes = 8,192 bytes (or 65,536 bits).
    4. 4.Step 4: Calculate the increase in bytes: 8,192 bytes - 512 bytes = 7,680 bytes.
    Final Answer: 7,680 bytes
    Active Recall Memory Test
    What formula calculates the total number of colours that can be stored using an n-bit colour depth?
    Key Fact: 2^n (2 raised to the power of n).
    What is the formula for calculating the raw data size of an uncompressed bitmapped image in bits?
    Key Fact: Width (in pixels) x Height (in pixels) x Colour Depth (in bits per pixel).
    Give three distinct examples of metadata stored inside a bitmapped image file.
    Key Fact: Image dimensions (width/height), colour depth (bits per pixel), and image resolution (e.g. DPI) or date/time of creation.
    What visual defect occurs when a bitmapped image is enlarged beyond its native resolution?
    Key Fact: Pixelation (the individual square pixels become discernibly visible and edges appear jagged).
    Frequently Asked Questions
    What is the difference between image resolution and colour depth?
    Image resolution refers to the total number of pixels comprising the image grid, often written as width multiplied by height (e.g. 1920 x 1080) or as pixel density (pixels per inch). In contrast, colour depth (or bit depth) dictates how many binary bits are dedicated to storing the colour value of each individual pixel. Resolution controls spatial detail, while colour depth controls colour precision and variety.
    Why do exam questions ask for file sizes in KiB/MiB instead of KB/MB?
    Computer systems operate natively in base-2 (binary). A kibibyte (KiB) is strictly 1,024 bytes (2^10), and a mebibyte (MiB) is 1,048,576 bytes (2^20), whereas decimal prefixes (KB, MB) technically represent powers of 10 (1,000 and 1,000,000 bytes). AQA accepts calculations using either 1,024 or 1,000 provided your working clearly indicates which standard is being applied, but IEC binary prefixes (KiB, MiB) are mathematically accurate for binary computer memory.
    Why does an image file still take up storage even if all the pixels are pure white?
    In an uncompressed bitmapped image, every pixel location in the grid must have its binary colour value recorded regardless of what colour it is. For example, in a 24-bit image, a pure white pixel is stored as 24 ones (11111111 11111111 11111111). Unless a compression algorithm like Run-Length Encoding (RLE) is applied, every pixel requires identical storage regardless of colour content.
    What happens to a bitmapped graphic when you zoom in?
    When you zoom into a bitmapped graphic, the computer must enlarge the existing pixels because no additional underlying spatial data exists. This results in pixelation, where individual square pixels become clearly visible and curved or diagonal lines appear jagged (aliasing). Vector graphics avoid this because their mathematical equations recalculate at any zoom level to maintain crisp borders.
    What is 24-bit True Colour?
    24-bit True Colour allocates 8 bits (1 byte) each to the Red, Green, and Blue colour channels. Each channel has 2^8 = 256 distinct intensities (from 0 to 255). Multiplying these combinations (256 x 256 x 256) yields 16,777,216 distinct possible colours, which exceeds the limit of human eye colour discrimination, hence the term 'True Colour'.