Data representationCommon vector graphic objects

Processors handle binary numbers while humans use denary. Binary to denary conversion aids understanding of data representation. ASCII represents text. Bitmapped graphics are stored as binary. Vector graphics store objects as a list of attributes.

Part ofComputing ScienceComputer systems

Common vector graphic objects

It is common to use the following objects when creating vector graphics.

N5 Computing Science common vector graphic objects

Polygon

The polygon object can be any shape that has at least three sides and allows for a wide variety of common shapes to be stored in vector form.

The example above is a pentagon but a polygon could be created to display a triangle, hexagon, star and a wide variety of different shapes.

Rectangle

Rectangle is actually a type of polygon but given the frequency of its use, most vector graphic file formats support a specific rectangle object. Squares could be created using either the rectangle or polygon objects.

Ellipse

Ellipse objects are like circles but you can alter the radius of the X co-ordinate so that it is a different value to that of the Y co-ordinate. This allows for the creation of oval shapes rather than circles. Circle objects are also supported by vector file formats and can be used to create a traditional circle.

Line

The line object allows for the creation of lines. More complex lines with different points can be created using an object called a polyline.