Multimedia
Task 9 - Vector Graphics


A.M.D.G.


Vector drawn graphics use objects that can be mathematically defined. Any shape drawn in a vector drawn package for example a line, rectangle, circle or polygon is known as an object. When saving the graphic, all that needs to be saved is the object description and the coordinates where it is located. For example, any circle can be drawn if you know the centre point and its radius. Add the colour of the line and its fill, and you should be able to store and redraw the circle exactly. Therefore, a circle might be saved as:

CIRCLE 200, 100, 50, RED, BLUE

meaning a circle with its centre at coordinates 200,100 with radius 50, drawn with a red line and a blue fill.

Similar commands can be used for storing rectangles, polygons and lines.

This method of storing a picture uses very little memory, as only the object description is stored. This means that any object, regardless of size, could be stored in 50 bytes.


Answer the following questions in your jotter.

1. Write down how a rectangle drawn from 100, 150 to 350, 400 with a green line and a red fill would be stored.

2. Write down how a rectangle drawn from 100, 150 to 500, 400 with a blue line and a yellow fill would be stored.