Digital images are stored as bitmaps — grids of tiny squares called pixels (picture elements). Each pixel stores a single colour value as a binary number. The more pixels, the more detail the image can show.
Resolution refers to the number of pixels in an image, expressed as width × height (e.g. 1920 × 1080). A higher resolution means more pixels, so the image is sharper and shows more detail — but the file size is larger.
| Resolution | Total pixels | Typical use |
|---|---|---|
| 640 × 480 | 307,200 | Old webcam, thumbnail |
| 1920 × 1080 | 2,073,600 (~2MP) | HD TV, monitor |
| 3840 × 2160 | 8,294,400 (~8MP) | 4K video/display |
Higher resolution → better quality → larger file size.
Colour depth is the number of bits used to represent the colour of each pixel.
| Colour depth | Bits per pixel | Number of colours | Example |
|---|---|---|---|
| 1-bit | 1 | 2 (black & white only) | Simple icons |
| 4-bit | 4 | 16 | Early games graphics |
| 8-bit | 8 | 256 | GIF images |
| 24-bit (True Colour) | 24 | 16,777,216 (~16.7 million) | JPEG, PNG photos |
Number of colours = 2^(colour depth bits). e.g. 8-bit → 2⁸ = 256 colours.
24-bit colour uses 8 bits each for red, green and blue (RGB) channels: 3 × 8 = 24 bits. With 8 bits per channel, each channel has 256 levels, giving 256³ = 16,777,216 possible colours.
The uncompressed file size of a bitmap image is calculated using:
File size (bits) = Width × Height × Colour depth
Then divide by 8 for bytes, by 1024 for kilobytes, etc.
Image size: 800 × 600 pixels, 24-bit colour depth.
A 100 × 100, 1-bit (black & white) image:
| Factor | Increase causes | Why |
|---|---|---|
| Resolution | Larger file size | More pixels → more data to store |
| Colour depth | Larger file size | More bits per pixel → more data per pixel |
| Resolution | Better image quality | More detail captured |
| Colour depth | More realistic colours | More shades and hues available |
8 questions · 22 marks · Show all calculations
| Term | Definition |
|---|
10 questions · 10 marks · 10 minutes