A bitmap (also called a raster image) represents an image as a rectangular grid of pixels (picture elements). Each pixel stores a colour value. The image data is stored as a sequence of these values.
The smallest addressable element of a digital image. Each pixel has a colour value stored as one or more bits.
Colour depth is the number of bits used to represent each pixel. It determines how many different colours can be represented:
Number of colours = 2colour depth
| Colour depth | Colours possible | Example |
|---|---|---|
| 1 bit | 2 | Black and white |
| 8 bits | 256 | Indexed colour, greyscale |
| 16 bits | 65,536 | High colour |
| 24 bits | 16,777,216 | True colour (24-bit RGB) |
Resolution refers to the number of pixels in an image, typically expressed as width × height (e.g. 1920 × 1080). Higher resolution means more detail but requires more storage.
Resolution can also refer to pixels per inch (PPI) — the density of pixels, determining print quality.
The size of an uncompressed bitmap file is:
File size (bits) = Width × Height × Colour depth
To convert to bytes: divide by 8. To convert to KB: divide by 8192.
An image is 800 × 600 pixels with 24-bit colour depth. Calculate the file size in megabytes:
Image files also contain metadata — data about the image stored alongside the pixel data. Common metadata includes:
Metadata means the actual file size is slightly larger than the pixel data alone would suggest.
| Factor | Effect of increasing | Trade-off |
|---|---|---|
| Resolution (pixels) | More detail, smoother image | Larger file size |
| Colour depth | More colours, more realistic | Larger file size |
| Property | Bitmap | Vector |
|---|---|---|
| Stored as | Grid of pixel values | Mathematical descriptions of shapes |
| Scaling | Loses quality (pixelated) | Scales perfectly at any size |
| File size | Depends on resolution × colour depth | Depends on complexity of image |
| Best for | Photos, complex images | Logos, diagrams, text |
| Editing | Can edit individual pixels | Can edit individual shapes/paths |
8 questions · instantly marked · Cambridge 9618 standard
| Term | Definition |
|---|
10 questions · 10 marks · 10 minutes