A digital image is made up of tiny squares called pixels (picture elements). Each pixel stores a single colour value. The collection of all pixels in an image is called a bitmap.
In a black-and-white image, each pixel is 0 (white) or 1 (black) — just 1 bit. In a grayscale or colour image, more bits are needed per pixel.
Colour depth (also called bit depth) is the number of bits used to represent each pixel. More bits per pixel = more possible colours.
Number of colours = 2colour depth
Resolution is the number of pixels in an image, usually expressed as width × height (e.g. 1920 × 1080) or as pixels per inch (ppi/dpi).
Image file size (bits) = number of pixels × colour depth (bits per pixel)
Number of pixels = width (pixels) × height (pixels)
Example: A 200 × 150 pixel image with 24-bit colour depth:
Image files also contain metadata — additional data stored alongside the image itself. Examples include: image width and height, colour depth, file format, date taken, and for photos, GPS location or camera settings. Metadata increases the overall file size slightly beyond just the pixel data.
5 questions · 10 marks
| Term | Definition |
|---|
10 minutes · 9 marks