GCSE Computer Science โ€ข Data Representation

Bitmap Images

Master how images are stored in binary, calculate file sizes, and understand the trade-offs between quality and storage.

0
Activities
0
Correct
0
Streak ๐Ÿ”ฅ

Key Concepts

Click on each card to review the essential definitions

Pixel
A picture element โ€“ the smallest addressable unit of a bitmap image. Each pixel represents a single point of colour.
Bitmap
A method for storing images by 'mapping' binary data to pixels. Each pixel's colour is stored as binary values in sequence.
Resolution
The density of pixels in an image, typically measured in pixels per inch (PPI) or dots per inch (DPI). Higher resolution = more detail.
Colour Depth
The number of bits used to encode the colour of each pixel. More bits = more possible colours. Common values: 1-bit, 8-bit, 24-bit.
Metadata
'Data about data' โ€“ information stored with the image such as width, height, colour depth, resolution, and creation date.
Colour Table
A lookup table that maps binary codes to specific colours. Used in indexed colour images to reduce file size.

๐Ÿ“ File Size Formula

File Size (bits) = Width ร— Height ร— Colour Depth

To convert: รท8 for bytes, รท1024 for KiB, รท1024 again for MiB

๐Ÿ”ข
Colour Depth Quick Reference
Colour Depth Max Colours (2n) Typical Use
1-bit 2 colours Black & white
8-bit 256 colours Greyscale, GIF
16-bit 65,536 colours High colour
24-bit 16.7 million colours True colour (RGB photos)

Trade-offs: Quality vs Storage

Understand how changing image properties affects file size and quality

๐Ÿ“ Doubling width AND height
๐Ÿ“Š Resolution: No change to PPI
๐Ÿ’พ Storage: 4ร— larger (quadrupled)
๐ŸŒ Network: Takes 4ร— longer to transmit
๐Ÿ” Tripling pixels per inch
๐Ÿ“Š Resolution: 3ร— higher
๐Ÿ’พ Storage: 9ร— larger
๐ŸŒ Network: Takes 9ร— longer to transmit
๐ŸŽจ Reducing colour depth 24-bit โ†’ 8-bit
๐Ÿ“Š Resolution: No change
๐Ÿ’พ Storage: 3ร— smaller
๐ŸŒ Network: Transmits 3ร— faster

Memory Match

Match the terms with their definitions

๐Ÿง 
Find the Pairs

Click on cards to flip them. Match each term with its correct definition.

Parsons Puzzle

Arrange the steps in the correct order to calculate file size

๐Ÿงฉ
Calculate file size in KiB for a 640ร—480 image with 24-bit colour

๐Ÿ“ฆ Code Blocks

๐Ÿ“ Your Solution

Categorize

Drag items into the correct categories

๐Ÿ“‚
Sort These Image Concepts

๐Ÿ“ฆ Drag items from here:

Pixel Art Builder

Create pixel art and see the binary representation

๐ŸŽจ
Draw Your Image

Your Canvas (8ร—8)

๐Ÿ“Š Image Metadata

Width
8 pixels
Height
8 pixels
Colour Depth
3 bits
File Size
192 bits

๐Ÿ”ข Binary Data (Colour Table)

๐Ÿ“„ Binary Data (File Contents)

File Size Calculator

Calculate image file sizes and practice conversions

๐Ÿงฎ
Calculate File Size
โ“
Practice Problems

Knowledge Check

Test your understanding with these exam-style questions