levo

Fundamentals of Data Representation

Vector graphics

  • 2 things to know
  • Paper 2
Start revising · £5/month

Overview

Recall questions on drawing primitives and their properties, describing a picture in vector terms, and why a vector image enlarges without loss of quality.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Explain why a vector graphic can be enlarged without any loss of quality.

Evaluation

State the advantages of bitmapped graphics over vector graphics.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Explain how vector graphics represent an image.

    Model answer

    A vector graphic is stored as a list of the objects that make up the image. Each object is a geometric shape, and what is stored for it is not pixels but its properties — the values that define its geometry and appearance. To display the image, the software reads the list and draws each object in turn at the size required.

  2. 2

    Name the drawing primitives typically available in a vector graphic.

    Model answer

    Point, straight line, rectangle, square, circle, ellipse, arc, polygon, curve and text. More complicated pictures are built by combining these primitives, and objects can be grouped and layered.

  3. 3

    Give examples of typical properties stored for objects in a vector graphic.

    Model answer

    Geometric properties fixing where and how big the object is — the coordinates of a line's start and end points, the centre coordinates and radius of a circle, the coordinates, width and height of a rectangle, or the list of vertices of a polygon. Appearance properties — line colour, line thickness, line style such as dashed, and fill colour or fill style. Ordering properties such as the layer or z-order, which decides what is drawn on top of what.

  4. 4

    List the properties that would be stored for a circle in a vector graphic.

    Model answer

    The x and y coordinates of the centre, the radius, the line colour, the line thickness, and the fill colour — plus its position in the drawing order. Those few values completely define the circle at any size.

  5. 5

    Use vector graphic primitives to describe a simple picture of a house.

    Model answer

    Object 1, rectangle: x = 10, y = 40, width = 60, height = 40, line colour black, line thickness 2, fill colour white — the walls. Object 2, polygon: vertices (10, 40), (70, 40), (40, 10), line colour black, thickness 2, fill colour red — the roof. Object 3, rectangle: x = 35, y = 60, width = 10, height = 20, line colour black, thickness 1, fill colour brown — the door. Object 4, circle: centre (25, 50), radius 5, line colour black, thickness 1, fill colour blue — the window. The file is that list of four objects and their property values.

  6. 6

    Explain why a vector graphic can be enlarged without any loss of quality.

    Model answer

    Nothing about the picture is tied to a pixel grid. The file holds the geometry of each object, so to display the image at a different size the software recalculates the coordinates and redraws every shape at the new scale. Lines and curves are therefore redrawn smoothly at whatever resolution the display or printer offers, instead of existing pixels being stretched.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Fundamentals of Data Representation, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.