- Asked 4/25
- 2074 Asoj · 6 marks
- 2079 Baisakh · 6 marks
- 2078 Bhadra · 6 marks
- 2076 Asoj · 2 marks
Raster versus vector graphics
Short answer
Raster graphics store images as pixel grids; best for photographs and realistic shading. Vecor graphics store geometric primitives (lines, curves); they scale without quality loss and are preferred for logos, diagrams, and CAD where editing and resolution independence are needed.
Distinguish between raster and vector graphics methods. When do we prefer each of them?
Raster graphics stores an image as a grid of pixels, each with its own colour value (e.g. BMP, JPEG, PNG). Vector graphics stores an image as mathematical descriptions of geometric objects such as points, lines, curves and polygons, with their attributes (e.g. SVG, PDF, CDR).
| Point | Raster graphics | Vector graphics |
|---|---|---|
| Basic element | Pixel | Geometric primitive (line, curve, polygon) |
| Storage | Colour of every pixel; large files | Equations and attributes; small files |
| Scaling | Becomes blocky or blurred (pixelated) when enlarged | Scales to any size without loss of quality |
| Realism | Excellent for photographs and shaded images | Poor for photo-realistic images |
| Editing | Edit pixel by pixel | Edit individual objects easily (move, recolour, resize) |
| Display | Directly shown on raster monitors | Must be converted to pixels (scan conversion) for display |
| Output device | Raster monitor, laser printer | Plotter, also raster devices after conversion |
| Tools | Photoshop, Paint, GIMP | CorelDRAW, Illustrator, Inkscape, AutoCAD |
Raster: .##. Vector: line (0,0)-(3,3)
#### circle (5,5), r=2
.##. colour = red
When to prefer raster: photographs, realistic and shaded scenes, paintings, textures, games and video, where each pixel's colour matters.
When to prefer vector: logos, text fonts, maps, engineering drawings, CAD and diagrams, which must be resized without quality loss, need small files and be edited as separate objects.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Random scan versus raster scan display · Computer Graphics, chapter 1 · asked 7×
- Raster display and frame buffer load time · Computer Graphics, chapter 1
- Pixel access rate of raster system · Computer Graphics, chapter 1
- Short note: Raster scan display · Computer Graphics, chapter 1
- Raster animation · Computer Graphics, chapter 1
- Explain vector display · Computer Graphics, chapter 1
- Image versus graphics · Multimedia System, chapter 3 · asked 2×
- Bitmap images; bitmap versus vector · Multimedia System, chapter 3
- Vector computation for performance · Computer Organization and Architecture, chapter 4
- Structure versus array · Computer Programming, chapter 8 · asked 4×