You get a bonus - 1 coin for daily activity. Now you have 1 coin

Vector Graphics and Tools for Working with Vector Graphics

Lecture



Vector graphics is a form of computer graphics in which visual images are created directly from geometric shapes defined on a Cartesian plane, such as points, lines, curves, and polygons. Related mechanisms may include vector hardware for display and printing, vector data models and file formats, and software based on these data models (especially graphic design software, computer-aided design, and geographic information systems). Vector graphics is an alternative to raster or bitmap graphics, each of which has its own advantages and disadvantages in certain situations.

While vector hardware has largely disappeared in favor of raster monitors and printers, vector data and software continue to be widely used, especially when a high degree of geometric precision is required, and when complex information can be decomposed into simple geometric primitives. Thus, it is the preferred model for fields such as engineering design, architecture, surveying, 3D rendering, and typography, but is entirely unsuitable [citation needed] for applications such as photography and remote sensing, where raster is more efficient and productive. Some application areas, such as geographic information systems (GIS) and graphic design, sometimes use both vector and raster graphics, depending on the purpose.

Vector graphics is based on the mathematics of analytic or coordinate geometry and is not related to other mathematical uses of the term vector. This can lead to some confusion in disciplines that use both meanings.

Data Model : Geometric Primitive

The logical data model of vector graphics is based on the mathematics of coordinate geometry, in which shapes are defined as a set of points in a two- or three-dimensional Cartesian coordinate system, as p = ( x, y ) or p = ( x, y, z ). Since almost all shapes consist of an infinite number of points, the vector model defines a limited set of geometric primitives that can be specified using a finite sample of prominent points called vertices. For example, a square can be uniquely defined by the locations of three of its four corners, from which the software can interpolate the connecting boundary lines and the interior space. Since it is a regular shape, a square can also be defined by the location of one corner, a size (width=height), and a rotation angle.

The basic geometric primitives are:

  • A single point.
  • A line segment, defined by two endpoints, allowing simple linear interpolation of the intermediate line.
  • A polygonal chain, or polyline, a connected set of line segments defined by an ordered list of points.
  • A polygon, representing a region of space defined by its boundary — a broken line with coincident starting and ending vertices.

Various more complex shapes may be supported:

  • Parametric curves, in which polylines or polygons are supplemented with parameters to define nonlinear interpolation between vertices, including circular arcs, cubic splines, Catmull–Rom splines, Bezier curves, and beziergons.
  • Standard parametric shapes in two or three dimensions, such as circles, ellipses, squares, superellipses, spheres, tetrahedra, superellipsoids, etc.
  • Irregular three-dimensional surfaces and solids are typically defined as a connected set of polygons (e.g., a polygon mesh) or as parametric surfaces (e.g., NURBS).
  • Fractals are often defined as a system of iterated functions.

In many vector datasets, each shape may be combined with a set of properties. The most common are visual characteristics such as color, line thickness, or dash pattern. In systems in which shapes represent real-world objects, such as GIS and BIM, various attributes of each represented feature can be stored, such as name, age, size, etc.

In some vector data, especially in GIS, information about topological relationships between objects can be represented in the data model, for example, tracking connections between road segments in a transportation network.

If a dataset stored in one vector file format is converted to another file format that supports all the primitive objects used in that particular image, the conversion can be performed without loss.

Vector Display Hardware. Vector Monitor

Vector Graphics and Tools for Working with Vector Graphics

A free Asteroids-style video game that can be played on a vector monitor.

Vector devices, such as the vector CRT and the pen plotter, directly control the drawing mechanism to create geometric shapes. Because vector display devices can define a line by dealing with just two points (that is, the coordinates of each end of the line), the device can reduce the overall amount of data it has to handle by organizing the image as pairs of points.

Vector graphics displays were first used in 1958 by the US SAGE air defense system. Vector graphics systems were decommissioned in the US in 1999. [citation needed] Vector graphics was also used on the TX-2 at MIT's Lincoln Laboratory by computer graphics pioneer Ivan Sutherland to run his Sketchpad program in 1963.

Subsequent vector graphics systems, most of which iterated through dynamically modifiable stored lists of drawing instructions, included the IBM 2250, the Imlac PDS-1, and the DEC GT40. There was a game console that used vector graphics called Vectrex, as well as various arcade games, such as Asteroids, Space Wars, Tempest, and many Cinematronics titles, such as Rip Off and Tail Gunner, that used vector monitors. Storage tube displays, such as the Tektronix 4014, could display vector images but could not modify them without first erasing the display. However, they were never used as widely as the raster scanning displays used for television, and largely disappeared by the mid-1980s, except in specialized applications.

Plotters used in technical drawing still draw vectors directly on paper by moving a pen directionally across the two-dimensional space of the paper. However, as with monitors, they have largely been replaced by wide-format printers, which print a raster image (which can be derived from vector data).

Software

Because this model is useful in various application domains, many different programs have been created for drawing, processing, and rendering vector graphics. Although they are all based on the same basic vector data model, they may interpret and structure shapes quite differently, using entirely different file formats.

  • Graphic design and illustration using a vector graphics editor or graphics software such as Adobe Illustrator. See Comparison of vector graphics editors for capabilities.
  • Geographic information systems (GIS), which can represent a geographic feature using a combination of a vector shape and a set of attributes. GIS includes vector editing, mapping, and vector spatial analysis capabilities.
  • Computer-aided design (CAD), used in engineering, architecture, and surveying. Building information modeling (BIM) models add attributes to each shape, similar to GIS.
  • Three-dimensional computer graphics software, including computer animation.

Tools for working with vector graphics.

Working with the CorelDRAW vector editor. Contours and shapes. Fills and strokes. Organizing objects. Color styles. Working with palettes. Special effects.

Working with the CorelDRAW vector editor involves many tools and techniques for creating professional graphic work. Here is a brief guide to the main aspects:

1. Contours and Shapes

  • Creating shapes:
    Use the tools on the toolbar:
    • Rectangle (F6)
    • Ellipse (F7)
    • Polygon
    • Star and others.
  • Editing contours:
    • The "Shape" tool (F10) allows you to modify nodes and curves.
    • Nodes can be added, removed, or converted to Bezier curves.

2. Fills and Strokes

  • Fill types:
    • Uniform fill: Selecting a single color.
    • Gradient fill: Smooth transition between colors.
    • Texture and pattern fill: Using textures and patterns.
    • Interactive fill: Dynamic gradient adjustment.
  • Stroke:
    • Adjusting the thickness, line style, and color through the "Outline" window.
    • Using the "Interactive Pen" for manual adjustment.

3. Organizing Objects

  • Layers:
    • Use the "Object Manager" to work with levels.
    • Convenient for complex projects with many elements.
  • Grouping and alignment:
    • Grouping (Ctrl+G) and ungrouping (Ctrl+U).
    • The "Align and Distribute" panel for precise positioning of objects.
  • Object order:
    • Changing the order through the "Arrange" menu or hotkeys (Shift+PageUp/PageDown).

4. Color Styles and Palettes

  • Color styles:
    • Create and apply color styles for consistency.
    • Changing a style automatically updates all linked elements.
  • Palettes:
    • CorelDRAW supports standard palettes (Pantone, CMYK, RGB).
    • You can create custom palettes.

5. Special Effects

  • Distortion effects:
    • Use the "Interactive Distortion" tool to distort objects.
  • Transparency:
    • Apply transparency through the "Interactive Transparency" window.
  • Shadows and highlights:
    • Add realistic shadows using the "Drop Shadow" tool.
  • PowerClip:
    • Insert objects inside other objects using PowerClip.

Simple Text Frames (Paragraph Text). Text Attributes.

Working with text in CorelDRAW involves two main types of text objects: Artistic Text and text blocks (Paragraph Text). Here is a detailed explanation of each:

1. Artistic Text

This type of text is used to create short captions, headings, and decorative text.

Creating Artistic Text

  1. Select the "Text" tool (F8).
  2. Left-click anywhere in the workspace and start typing.

Editing and Settings

  • Font size and style:
    Set on the property bar or in the "Font" window (Ctrl+T).
  • Text distortion:
    Use the "Interactive Distortion" tool to create effects (for example, arc, wave, stretch).
  • Contours and fills:
    Text can be filled with a gradient, texture, or given a stroke, just like ordinary objects.
  • Text on a path:
    1. Draw a curve or circle.
    2. Select the text, then choose "Text" > "Fit Text to Path".

2. Text Block (Paragraph Text)

This type of text is used for long text, such as articles, paragraphs, or descriptions.

Creating a Text Block

  1. Select the "Text" tool (F8).
  2. Click and drag the mouse to create a rectangular area for the text block.
  3. Type the text or paste it from the clipboard (Ctrl+V).

Editing and Settings

  • Text formatting:
    • Setting paragraph alignment (left, center, justified).
    • Setting line spacing and indents through the property bar.
  • Columns:
    • Split the text into columns via the "Text" > "Columns" menu.
  • Wrapping around objects:
    • Set the text to wrap around other objects. Use "Text" > "Wrap Paragraph Text".
  • Linking text blocks:
    • Text can "flow" from one block to another: select the text block, click the triangle icon, and drag it to another block.

General Techniques for Working with Text

  1. Converting text to curves:
    • To preserve the shape of the text unchanged (for example, when transferring a file), convert the text to curves: Ctrl+Q.
  2. Using fonts:
    • Make sure you use licensed fonts. CorelDRAW supports TrueType, OpenType, and PostScript fonts.
  3. Text styles:
    • Create text styles via "Window" > "Styles" > "Style Manager" for reusing formats.

Text Conversion. Applying Effects and Transformations to Text. Preparing Materials for Output.

In CorelDRAW, text can be converted and various effects applied to it to achieve a unique design. After completing the work, it is important to properly prepare the materials for output (for example, printing or exporting). Here is how to do it:

1. Text Conversion

  • Converting text to curves:

    • To preserve the text as a graphic object, use the Ctrl+Q command or "Object" > "Convert to Curves".
    • After conversion, the text becomes an ordinary vector object that can be edited with the "Shape" tool (F10).
    • This is especially important before printing, to avoid problems with missing fonts.
  • Separating text and its outline:

    • If the text has an outline, you can separate it from the fill: "Object" > "Break Apart Text and Outline".
    • Useful for creating effects where the outline and fill are edited separately.

2. Applying Effects

CorelDRAW offers many tools for creating effects with text:

Transformation Effects

  • Interactive transparency:
    • Select the text and apply transparency using the "Interactive Transparency" tool.
  • Interactive fill:
    • Create gradients, textures, or patterns by selecting the text as an object.
  • Text distortion:
    • Use "Effects" > "Distort" (for example, twist, stretch, waves).

3D and Shadow Effects

  • Shadow:
    • The "Interactive Drop Shadow" tool allows you to add realistic shadows, adjusting their direction, blur, and transparency.
  • Extrusion:
    • Turn text into a three-dimensional object using the "Interactive Extrude" tool.
    • Adjust the angle and depth of perspective.

PowerClip

  • Place text inside another shape or texture:
    1. Create a placeholder object (for example, a rectangle or texture).
    2. Select the text, then go to "Effects" > "PowerClip" > "Place Inside Frame".

Contour

  • Add multiple outlines to text with variable spacing:
    1. Select the text.
    2. Go to "Effects" > "Contour" and adjust the parameters (offset, steps, color).

3. Preparing Materials for Output

For successful printing or export, it is important to properly prepare the file:

Preparing for Printing

  • Checking colors:
    • Make sure all colors in the document match the print color model (CMYK). Use "Window" > "Color Palette".
  • Converting text to curves:
    • This eliminates problems with missing fonts on the printing equipment side.
  • Adding bleed:
    • Make sure that background elements extend beyond the edges of the page by 2–5 mm to avoid white borders when trimming.

Exporting for Digital Use

  • Use "File" > "Export" to save in the desired format (JPG, PNG, PDF).
  • Export settings:
    • For the web: RGB, 72 DPI.
    • For printing: CMYK, 300 DPI.

Print Preview

  • Use the "Print" > "Print Preview" function to check all layers, fills, and bleeds.

Vector File Formats

Vector Graphics and Tools for Working with Vector Graphics

A raster image contains information about points, while a vector image contains information about shapes (form). This shows the key advantage of "vector" over "raster" in terms of scaling for illustrative purposes. A vector (SVG format) image demonstrates several unique features of vector graphics compared to raster graphics: along a rounded edge there is no spectrum overlap (which would lead to digital artifacts in raster graphics), all color gradients are smooth, and the user can resize the image infinitely without loss of quality.

Vector graphics today is typically found in the SVG, WMF, EPS, PDF, CDR, or AI graphic file formats and is inherently different from more common raster graphics file formats, such as JPEG, PNG, APNG, GIF, WebP, BMP, and MPEG4.

The World Wide Web Consortium (W3C) standard for vector graphics is Scalable Vector Graphics (SVG). The standard is complex and has been established relatively slowly, at least in part due to commercial interests. Many web browsers now have some support for rendering SVG data, but full implementations of the standard are still comparatively rare.

In recent years, SVG has become a significant format that is completely independent of the resolution of the rendering device, usually a printer or monitor. SVG files are essentially printed text describing both straight and curved paths, as well as other attributes. Wikipedia prefers SVG for images such as simple maps, line illustrations, coats of arms, and flags, which typically do not resemble photographs or other continuous-tone images. [citation needed] Rendering SVG requires conversion to a raster format at a resolution appropriate for the current task. SVG is also a format for animated graphics.

There is also a version of SVG for mobile phones. In particular, a special format for mobile phones is called SVGT (SVG Tiny version). These images can count references, as well as use anti-aliasing. They can also be displayed as wallpapers.

The first line is a standard XML header, an XML declaration, specifying the XML version (version) (usually "1.0") and the character encoding (encoding):

 Vector Graphics and Tools for Working with Vector Graphics

The second and third lines should contain the DOCTYPE header, defining the Document Type Definitions (DTD):

 Vector Graphics and Tools for Working with Vector Graphics

Unfortunately, in some cases, when using Mozilla Firefox with its built-in SVG viewer, the content of the DOCTYPE declaration can be a source of errors. There are recommendations not to use the DOCTYPE declaration in SVG version 1.0. Instead, it is recommended to include the baseProfile attribute in the root element with the value "full" .

If for some reason a DOCTYPE declaration is required in the document, it is recommended to use an empty declaration, as in the example.

 Vector Graphics and Tools for Working with Vector Graphics

The fourth line contains the root element of the document, specifying the SVG namespace.

 Vector Graphics and Tools for Working with Vector Graphics

Next comes the rest of the document text, nested within the root element, where the elements describing the content of the encoded scene are actually located.

The document always ends with the closing of the root tag Vector Graphics and Tools for Working with Vector Graphics

  • A simple static SVG document with the outline of a square 400 pixels in size and three semi-transparent circles with a radius of 104 pixels centered on the square, each circle offset from the center of the square by approximately half a radius.

Vector Graphics and Tools for Working with Vector Graphics

CAD software uses its own vector data formats, usually proprietary formats created by software vendors, such as DWG from Autodesk, and publicly available exchange formats, such as DXF. Throughout history, hundreds of different vector file formats have been created for GIS data, including proprietary formats such as the Esri file geodatabase, proprietary but publicly available formats such as Shapefile and the original KML, open-source formats such as GeoJSON, and formats created by standards bodies such as Simple Features and GML from the Open Geospatial Consortium.

Conversion

The list of image file formats covers proprietary and public vector formats.

Vector Graphics and Tools for Working with Vector Graphics

Original photo before vectorization

Vector Graphics and Tools for Working with Vector Graphics

Details can be added to or removed from vector graphics.

To Raster: Rasterization, Raster Image Processor, and Rendering Output Unit

Modern displays and printers are raster devices; vector formats must be converted to raster format (bitmaps – arrays of pixels) before they can be rendered (displayed or printed). The size of the bitmap/raster format file generated by the conversion will depend on the required resolution, but the size of the vector file that generates the bitmap/raster file will always remain the same. Thus, it is easy to convert a vector file into a range of bitmap/raster file formats, but much more difficult to go in the reverse direction, especially if subsequent editing of the vector image is required. It can be advantageous to save an image created from a vector source file in bitmap/raster format, since different systems have different (and incompatible) vector formats, and some may not support vector graphics at all. However, once a file is converted from a vector format, it is likely to become larger and lose the advantage of scalability without loss of resolution. It will also no longer be possible to edit individual parts of the image as discrete objects. The file size of a vector graphic image depends on the number of graphic elements it contains; it is a list of descriptions.

From Raster: Vectorization (Image Tracing) and Comparison of Raster-to-Vector Conversion Software

Printing

Vector graphics is ideal for printing because it consists of a series of mathematical curves; it will print very sharply even when resized. For example, you can print a vector logo on a small sheet of copy paper and then enlarge the same vector logo to billboard size while retaining the same crisp quality. Low-resolution raster graphics will become excessively blurry or pixelated if enlarged from business-card size to billboard size. (The exact raster resolution required for high-quality results depends on the viewing distance; for example, a billboard may still look high-quality even at low resolution if the viewing distance is great enough.)

If we consider typographic characters as images, then the same considerations we made for graphics apply even to the composition of written text for printing (typesetting). Older character sets were stored as raster images. Therefore, to achieve maximum print quality, they had to be used only at a set resolution; these font formats are considered non-scalable. High-quality typography today is based on character drawings (fonts) that are typically stored as vector graphics and, as such, scale to any size. Examples of these vector formats for characters are Postscript fonts and TrueType fonts.

Operation

The advantages of this drawing style over raster graphics:

  • Since vector graphics consist of coordinates with lines/curves between them, the size of the representation does not depend on the dimensions of the object. This minimal amount of information translates into a much smaller file size compared to large raster images, which are defined pixel by pixel. It is often said that vector graphics with a small file size lack detail compared to an actual photograph.
  • Accordingly, one can infinitely zoom in on, for example, a circular arc, and it will remain smooth. On the other hand, a polygon representing a curve will reveal that it is not actually curved.
  • When zooming in, lines and curves do not necessarily have to become proportionally wider. Often the width either does not increase or becomes less than proportional. On the other hand, irregular curves represented by simple geometric shapes can be made proportionally wider when zoomed in, so that they appear smooth and unlike those geometric shapes.
  • Object parameters are preserved and can be changed later. This means that moving, scaling, rotating, filling, etc. do not degrade the quality of the drawing. Moreover, dimensions are usually specified in device-independent units, which ensures the best rasterization on raster devices.
  • From a three-dimensional perspective, shadow rendering is also much more realistic with vector graphics, since shadows can be abstracted into the light rays from which they are formed. This allows for the creation of photorealistic images and renders.

For example, consider a circle of radius r. The basic data a program needs to draw this circle are as follows:

  1. An instruction to draw a circle.
  2. the radius r
  3. the location of the circle's center point
  4. the style and color of the stroke outline (possibly transparent)
  5. the style and color of the fill (possibly transparent)

Vector formats are not always suitable for graphic work and also have numerous drawbacks. For example, devices such as cameras and scanners produce essentially continuous-tone raster graphics, which it is impractical to convert into vectors, and so for this type of work an image editor will work with pixels rather than with drawing objects defined by mathematical expressions. Complex graphic tools will combine images from vector and raster sources and may provide editing tools for both, since some parts of an image may come from a camera source while others may be drawn using vector tools.

Some authors have criticized the term vector graphics as confusing. In particular, vector graphics does not simply refer to graphics described by Euclidean vectors. Some authors have proposed using the term object-oriented graphics instead. However, this term can also be confusing, since it can be interpreted as any kind of graphics implemented using object-oriented programming.

Vector Operations

Vector graphics editors typically allow moving, rotating, mirroring, stretching, skewing, affine transformations, changing z-order (roughly, what is in front of what), and combining primitives into more complex objects. More complex transformations include set operations on closed shapes (union, difference, intersection, etc.). In SVG, compositing operations are based on alpha compositing.

Vector graphics is ideal for simple or composite drawings that need to be device-independent, or that do not need to achieve photorealism. For example, the PostScript and PDF page description languages use the vector graphics model.

Vector Image Repositories

Many stock photo sites offer vector versions of the images they host, while certain repositories specialize in vector images, given their growing popularity among graphic designers.

List of Vector Image Repositories
Repository/Company License
Vecteezy paid
VectorStock paid
Vectezy Freemium
Freepik paid
Envato Elements paid
Depositphotos paid

See Also

  • Animation
  • Anti-aliased geometry
  • Cairo (graphics)
  • Comparison of vector graphics editors
  • Comparison of graphics file formats
  • Computer-aided design
  • Direct2D
  • Illustration
  • JavaScript graphics library
  • Raster to vector
  • Raster graphics
  • Resolution independence
  • Turtle graphics
  • Vector game
  • Vector graphics file formats
  • Vector monitor
  • Vector network
  • Vector packages
  • Bill of exchange
  • Wireframe model
  • 3D modeling
created: 2025-01-16
updated: 2026-03-10
157



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "computer graphics"

Terms: computer graphics