How to use it. Zoom and size shows the same logo (Rangitoto Kayaks) stored two ways, side by side. Drag the zoom: the bitmap's pixels get bigger and blockier, the vector stays sharp. Change the bitmap's resolution and colour depth, and the vector's detail, and watch the file sizes. Switch to the photo to see the other side of the story. Edit works on the layers of the vector (show, hide, reorder, scale, rotate, flip) and on the bitmap (crop, resample, colour depth, rotate). Which format? asks you to choose for real jobs.
Bitmap (raster) graphics store a grid of pixels, each with its colour.
- File size (uncompressed) = width × height × colour depth bits; ÷ 8 for bytes. Doubling the width and the height makes four times as many pixels.
- Resolution is how many pixels there are (or how many per inch when printed). Enlarging a bitmap beyond its resolution makes it pixelated: each pixel is shown as a bigger square. Making it smaller throws pixels away (resampling).
- Colour depth is the bits per pixel: 1 bit gives 2 colours, 8 bits 256, 24 bits about 16.7 million (true colour). Fewer bits give a smaller file, but colours band.
- Good for photographs and anything with continuous tone, scanned images and digital painting. Formats: JPEG (lossy), PNG (lossless, with transparency), GIF (up to 256 colours, animation), BMP and TIFF.
Vector graphics store objects (shapes, lines, curves and text) as a list of instructions: each object's coordinates (its anchor points or nodes), size, fill, line colour and thickness.
- They're drawn fresh at whatever size is needed, so they scale without losing quality: a logo can go on a business card or a billboard.
- The file size depends on how many objects there are and how complicated they are, not on the display size. A simple logo is tiny; a photo traced into shapes needs thousands of them and still looks flat.
- Each object can be edited separately, and transformations (scale, rotate, flip) are just numbers: nothing is lost.
- Good for logos, icons, diagrams, maps, plans, clip art and fonts. Formats: SVG, EPS, AI, and PDF (which can hold both).
Layers keep parts of an image separate, stacked from bottom to top: a layer can be hidden, moved up or down (changing what's in front), or edited without touching the others. Transformations: scale (keep the aspect ratio, or it distorts), rotate, flip (reflect) horizontally or vertically. Editing a bitmap: cropping removes the pixels outside the area kept (smaller file); reducing the resolution or the colour depth loses detail for good; rotating by any angle that isn't a multiple of 90° resamples the pixels, so each turn blurs it a little.
Common exam mistakes: saying vectors are made of pixels (they're displayed on a pixel screen, but stored as objects); saying a bitmap is "blurry" when it's enlarged (it's pixelated); thinking a vector's file size grows when it's displayed bigger; choosing vector for a photograph; forgetting that colour depth multiplies the file size; distorting a scaled image by not keeping the aspect ratio.
Objective: Cambridge International A Level IT (9626), graphics creation: the features of vector and bitmap graphics and when each is used; resolution, colour depth and file size; layers; transformations (scale, rotate, flip); cropping and other image editing; graphic file types.
Where this fits
- AQA: AQA A Level Computer Science (7517)
- Cambridge: Cambridge A Level Computer Science (9618); Cambridge AS Level Computer Science (9618); Cambridge A Level Information Technology (9626)
- NCEA Level 2 Digital Technologies: 91893 Use advanced techniques to develop a digital media outcome; 91893 Use advanced techniques to develop a digital media outcome
- Pearson Edexcel International: Edexcel International GCSE ICT (4IT1)
- USDP: USDP Computer Science