Vector Graphics - Wiki
Vector Graphics - Wiki
Vector Graphics - Wiki
Vector graphics
Vector graphics are 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. The associated mechanisms
may include vector display and printing hardware,
vector data models and file formats, as well as the
software based on these data models (especially graphic
design software, computer-aided design, and geographic
information systems). Vector graphics are an alternative
to raster or bitmap graphics, with each having
advantages and disadvantages in specific situations.[1] Example showing comparison of vector graphics
and raster graphics upon magnification
While vector hardware has largely disappeared in favor
of raster-based monitors and printers,[2] 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 domains such as engineering, architecture, surveying, 3D rendering, and
typography, but is entirely inappropriate for applications such as photography and remote sensing,
where raster is more effective and efficient. Some application domains, such as geographic
information systems (GIS) and graphic design, use both vector and raster graphics at times,
depending on purpose.
Vector graphics are 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 in which
both meanings are used.
Data model
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). Because 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 salient points called vertices. For example, a square can be unambiguously defined by the
locations of three of its four corners, from which the software can interpolate the connecting boundary
lines and the interior space. Because it is a regular shape, a square could also be defined by the
location of one corner, a size (width=height), and a rotation angle.
A single point.
https://en.wikipedia.org/wiki/Vector_graphics 1/8
15/06/2024, 11:49 Vector graphics - Wikipedia
A line segment, defined by two end points, allowing for a simple linear interpolation of the
intervening 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 polyline with coincident
starting and ending vertices.
A variety of more complex shapes may be supported:
Parametric curves, in which polylines or polygons are augmented with parameters to define a
non-linear interpolation between vertices, including circular arcs, cubic splines, Catmull–Rom
splines, Bézier curves and bezigons.
Standard parametric shapes in two or three dimensions, such as circles, ellipses, squares,
superellipses, spheres, tetrahedrons, superellipsoids, etc.
Irregular three-dimensional surfaces and solids, are usually defined as a connected set of
polygons (e.g., a polygon mesh) or as parametric surfaces (e.g., NURBS).
Fractals, often defined as an iterated function system.
In many vector datasets, each shape can be combined with a set of properties. The most common are
visual characteristics, such as color, line weight, or dash pattern. In systems in which shapes represent
real-world features, such as GIS and BIM, a variety of attributes of each represented feature can be
stored, such as name, age, size, and so on.[3]
In some Vector data, especially in GIS, information about topological relationships between objects
may be represented in the data model, such as tracking the connections between road segments in a
transport network.[4]
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, then the conversion can be lossless.
Vector graphic displays were first used in 1958 by the US SAGE air
defense system.[6] Vector graphics systems were retired from the
U.S. en route air traffic control in 1999. Vector graphics were also
used on the TX-2 at the Massachusetts Institute of Technology
A free software Asteroids-like video
Lincoln Laboratory by computer graphics pioneer Ivan Sutherland
game played on a vector monitor
to run his program Sketchpad in 1963.[7]
Subsequent vector graphics systems, most of which iterated through dynamically modifiable stored
lists of drawing instructions, include the IBM 2250, Imlac PDS-1, and DEC GT40. There was a video
game console that used vector graphics called Vectrex as well as various arcade games like Asteroids,
https://en.wikipedia.org/wiki/Vector_graphics 2/8
15/06/2024, 11:49 Vector graphics - Wikipedia
Space Wars, Tempest and many cinematronics titles such as Rip Off, and Tail Gunner using vector
monitors.[8] Storage scope displays, such as the Tektronix 4014, could display vector images but not
modify them without first erasing the display. However, these were never as widely used as the raster-
based scanning displays used for television, and had largely disappeared by the mid-1980s except for
specialized applications.
Plotters used in technical drawing still draw vectors directly to paper by moving a pen as directed
through the two-dimensional space of the paper. However, as with monitors, these have largely been
replaced by the wide-format printer that prints a raster image (which may be rendered from vector
data).
Software
Because this model is useful in a variety of application domains, many different software programs
have been created for drawing, manipulating, and visualizing vector graphics. While these are all
based on the same basic vector data model, they can interpret and structure shapes very differently,
using very different file formats.
Graphic design and illustration, using a vector graphics editor or graphic art software such as
Adobe Illustrator. See Comparison of vector graphics editors for capabilities.
Geographic information systems (GIS), which can represent a geographic feature by a
combination of a vector shape and a set of attributes.[9] 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 a GIS.
3D computer graphics software, including computer animation.
File formats
Vector graphics are commonly found today in the SVG, WMF, EPS, PDF, CDR or AI types of graphic
file formats, and are intrinsically different from the 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 relatively slow to be established at least in part owing 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, typically a printer or display monitor. SVG files are essentially printable text
that describes 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 generally are not like
photographs or other continuous-tone images. 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, the specific format for mobile phones
is called SVGT (SVG Tiny version). These images can count links and also exploit anti-aliasing. They
can also be displayed as wallpaper.
https://en.wikipedia.org/wiki/Vector_graphics 3/8
15/06/2024, 11:49 Vector graphics - Wikipedia
CAD software uses its own vector data formats, usually proprietary
formats created by software vendors, such as Autodesk's DWG and
public exchange formats such as DXF. Hundreds of distinct vector
file formats have been created for GIS data over its history,
including proprietary formats like the Esri file geodatabase,
proprietary but public formats like the Shapefile and the original
KML, open source formats like GeoJSON, and formats created by
standards bodies like Simple Features and GML from the Open
Geospatial Consortium.
From raster
Printing
Vector art is ideal for printing since the art is made from a series of mathematical curves; it will print
very crisply even when resized.[11] For instance, one can print a vector logo on a small sheet of copy
paper, and then enlarge the same vector logo to billboard size and keep the same crisp quality. A low-
resolution raster graphic would blur or pixelate excessively if it were enlarged from business card size
to billboard size. (The precise resolution of a raster graphic necessary for high-quality results depends
on the viewing distance; e.g., a billboard may still appear to be of high quality even at low resolution if
the viewing distance is great enough.)[12]
https://en.wikipedia.org/wiki/Vector_graphics 4/8
15/06/2024, 11:49 Vector graphics - Wikipedia
Operation
Advantages of this style of drawing over raster graphics:
editor will operate on the pixels rather than on drawing objects defined by mathematical expressions.
Comprehensive graphics tools will combine images from vector and raster sources, and may provide
editing tools for both, since some parts of an image could come from a camera source, and others
could have been drawn using vector tools.
Some authors have criticized the term vector graphics as being confusing.[16][17] In particular, vector
graphics does not simply refer to graphics described by Euclidean vectors.[18] Some authors have
proposed to use object-oriented graphics instead.[16][19][20] However this term can also be confusing
as it can be read as any kind of graphics implemented using object-oriented programming.[16]
Vector operations
Vector graphics editors typically allow translation, rotation, mirroring, stretching, skewing, affine
transformations, changing of z-order (loosely, what's in front of what) and combination of primitives
into more complex objects.[16] More sophisticated transformations include set operations on closed
shapes (union, difference, intersection, etc.).[21] In SVG, the composition operations are based on
alpha composition.[22]
Vector graphics are ideal for simple or composite drawings that need to be device-independent,[23] or
do not need to achieve photo-realism. For example, the PostScript and PDF page description
languages use a vector graphics model.
See also
Animation Resolution independence
Anti-Grain Geometry Turtle graphics
Cairo (graphics) Vector game
Comparison of vector graphics editors Vector graphics file formats
Comparison of graphics file formats Vector monitor
Computer-aided design Vector network
Direct2D Vector packs
Illustration Vexel
Javascript graphics library Wire frame model
Raster to vector 3D modeling
Raster graphics
Notes
1. Nigel Chapman; Jenny Chapman (2002) [2000]. Digital Multimedia (https://archive.org/details/digit
almultimedi00chap). Wiley. p. 86 (https://archive.org/details/digitalmultimedi00chap/page/n100).
ISBN 0-471-98386-1.
2. Arie Kaufman (1993). Rendering, Visualization and Rasterization Hardware (https://books.google.
com/books?id=lF4irp7bBN0C&pg=PA86). Springer Science & Business Media. pp. 86–87.
ISBN 978-3-540-56787-5.
https://en.wikipedia.org/wiki/Vector_graphics 6/8
15/06/2024, 11:49 Vector graphics - Wikipedia
https://en.wikipedia.org/wiki/Vector_graphics 7/8
15/06/2024, 11:49 Vector graphics - Wikipedia
References
Barr, Alan H. (July 1984). "Global and local deformations of solid primitives" (http://citeseerx.ist.ps
u.edu/viewdoc/download?doi=10.1.1.67.6046&rep=rep1&type=pdf) (PDF). Proceedings of the
11th annual conference on Computer graphics and interactive techniques. Vol. 18. pp. 21–30.
CiteSeerX 10.1.1.67.6046 (https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.67.6046).
doi:10.1145/800031.808573 (https://doi.org/10.1145%2F800031.808573). ISBN 0897911385.
S2CID 16162806 (https://api.semanticscholar.org/CorpusID:16162806). Retrieved July 31, 2020.
Gharachorloo, Nader; Gupta, Satish; Sproull, Robert F.; Sutherland, Ivan E. (July 1989). "A
characterization of ten rasterization techniques" (http://citeseerx.ist.psu.edu/viewdoc/download?do
i=10.1.1.105.461&type=pdf) (PDF). Proceedings of the 16th annual conference on Computer
graphics and interactive techniques. Vol. 23. pp. 355–368. CiteSeerX 10.1.1.105.461 (https://cites
eerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.105.461). doi:10.1145/74333.74370 (https://doi.or
g/10.1145%2F74333.74370). ISBN 0201504340. S2CID 8253227 (https://api.semanticscholar.org/
CorpusID:8253227). Retrieved July 28, 2020.
Murray, Stephen (2002). "Graphic Devices". In Roger R. Flynn (ed.). Computer Sciences, Vol 2:
Software and Hardware, Macmillan Reference USA (https://link-gale-com.libaccess.lib.mcmaster.c
a/apps/doc/CX3401200218/GVRL?u=ocul_mcmaster&sid=GVRL&xid=acaf5d43). Gale eBooks.
Retrieved August 3, 2020.
External links
Media related to Vector graphics at Wikimedia Commons
https://en.wikipedia.org/wiki/Vector_graphics 8/8