AQA 7517, section 4.5.6.6
Both vector and bitmapped graphics can store an image, but they work differently, so each suits different jobs.
The two approaches
- Bitmapped: a grid of pixels, each with its own colour value (4.5.6.4).
- Vector: a list of shapes and their properties (4.5.6.5).
Comparison
| Bitmapped graphics | Vector graphics | |
|---|---|---|
| Stored as | A grid of pixel colours | A list of objects and properties |
| Enlarging | Becomes blocky (pixelated) | Stays sharp at any size |
| File size | Depends on the pixels and colour depth, so large for big or detailed images | Depends on the number of objects, so often small for simple drawings |
| Photographs | Good: captures every detail and subtle colour change | Poor: too many tiny shapes would be needed |
| Simple shapes and text | Wasteful: still stores every pixel | Efficient |
| Editing | Edit individual pixels | Edit individual objects |
| Editing shapes later | Hard: objects are merged into pixels | Easy: each shape is separate |
| Detail | Fixed by the resolution | Unlimited by resolution |
| Display speed | Quick to show (just display the pixels) | Slower for complex images (shapes must be calculated) |
Advantages and disadvantages
Bitmapped
Advantages
- Can represent photographs and complicated images with fine detail and smooth tones.
- Simple, and widely supported (JPEG, PNG, GIF).
- Displayed quickly.
Disadvantages
- Loses quality when enlarged: the pixels become visible.
- File sizes can be large, particularly with high resolution or colour depth, unless compressed.
- Hard to edit individual shapes after they are drawn.
Vector
Advantages
- Scalable to any size without loss of quality, so it suits both a small icon and a large poster.
- Small files for simple graphics.
- Objects can be edited separately.
Disadvantages
- Not suitable for photographs or images with complex, subtle colour changes.
- Can be slow to display if there are many objects.
- The image looks flatter, with less natural detail.
Appropriate uses
| Use | Best choice | Reason |
|---|---|---|
| A photo from a camera | Bitmap | Complex, with fine colour detail |
| A company logo | Vector | Must be sharp at any size, from a tiny icon to a big sign |
| A scanned page | Bitmap | The scan is a grid of pixels |
| A technical drawing or floor plan | Vector | Precise lines and shapes that need editing |
| A map with roads | Vector | Resizing and zooming |
| A screenshot | Bitmap | A capture of pixels |
| Text fonts | Vector | Letters must scale smoothly |
Worked example
Task: a charity wants a logo for a letterhead, a website icon and a large banner. Which format should it use, and why?
A vector graphic. The same logo can be used at a tiny size on the website and at a huge size on the banner, and it stays sharp, because the shapes are recalculated at each size. A bitmap would have to be made at the largest size (a large file), or it would look blocky when enlarged. The file would also be small, because a logo is made of simple shapes.
If the charity also needs a photo of its volunteers on the banner, that photo should be a bitmap.
Exam tip: don't just say "vector is better". Link each choice to the use: "a logo is made of simple shapes and must scale without loss of quality, so vector" and "a photograph has fine detail, so bitmap".
Check yourself
Give one advantage of vector graphics over bitmapped graphics
Vector graphics can be enlarged without losing quality (or are usually smaller files for simple images, or have objects that can be edited individually).
Give one advantage of bitmapped graphics over vector graphics
Bitmaps can represent photographs and complex images with fine detail.
Which would you use for a photograph, and which for a company logo?
A bitmap for the photograph, and a vector graphic for the logo.
Why does enlarging a bitmap image reduce its quality?
The pixels are stretched and become visible, so the image looks blocky.