02 Vector Graphics
02 Vector Graphics
1
Course Content
Lecture 00 : Course Information
Lecture 01: Introduction.
Lecture 02: Vector Graphics.
Lecture 03:Bitmapped Images.
Lecture 04:Colour.
Lecture 05:Video.
Lecture 06:Animation.
Lecture 07: 7th Week Exam
Lecture 08: Sound.
Lecture 09: Text and Typography.
Lecture 10: Hypermedia & Interactivity.
Lecture 11: Design Principles.
Lecture 12: Accessibility.
Lecture 13: 12th Week Exam
Lecture 14: Multimedia and Networks.
Lecture 15: Student Presentations
Introduction
Image is a spatial representation of an object or a
scene. (image of a person, place, object)
Images :
Images are the 2-Dimensional digital
representations of pictures found in computers.
Computer attempts to duplicate the “look and
feel” of a picture via storing and processing.
Therefore, an image is a “realistic” version of the
original picture ; dependent on the quality and
capabilities of the computer and the graphic artist’s
ability to use the software.
Graphics in Multimedia Applications
Graphical images - used to add emphasis,
direct attention, illustrate concepts, and
provide background content
Two types of graphics:
1) Draw-type graphics or vector graphics –
represent an image as a geometric shape
2) Raster (Bitmap) graphics – represents the
image as an array of dots, called pixels
Representations in graphics
Draw-type Graphics Or Vector Graphics
Image is represented by continuous geometric objects:
lines, curves, etc.
6
Draw Type Or Vector Graphics
Example
Drawing programs
object-based representation
e.g., Powerpoint, outline fonts
Painting programs
bit-mapped representation
e.g., Adobe Photoshop, bit-map fonts
Vector vs Raster
vector raster
Vector vs Raster
Raster : Zooming on it
Raster : Zooming on it
Vector : Zooming on it
Raster vs Vector
Raster file extensions
Png – portable network graphic
Psd – Photoshop document
Jpg – joint photographic experts group
Gif – graphics interchange format
Bmp – Bitmap
Lecture
Two
Draw Type Or Vector Graphics
A vector image is defined by objects which are made of
lines and curves that are defined mathematically.
Vector images are the best choice for typefaces, charts and
graphs, drawings, and other graphics that must have sharp
lines when scaled to various sizes.
Draw-type Graphics Or
Advantage Vector Graphics
Small file size.
Maintain quality as the
size of the graphics is
increased.
Easy to edit the
drawings as each object
is independent of other.
Disadvantage
Objects/drawings
cannot have texture; it
can only have plain
Lecture colours or gradients ;
Two
limited level of detail in
an image.
Draw Type Or Vector Graphics
Draw type or vector graphics
Geometric shape stored as set of instructions
Smaller than bitmap
Resize, rotate, no distortion
No photo quality
Lecture
Two
Conversion
Vector graphics
Scan conversion
Pattern recognition
Lecture
Two
Raster (Bitmap) graphics
24
Computer Graphics
Image Analysis
(pattern recognition)
Mathematical
Image
Model
Image Synthesis
(Rendering)
Node
Handle
Examples
Original Image
Resized
Image Shapes that
make up the
image.
Uses of Vector Graphics
Graphics that will be scaled (or resized)
Architectural drawings and CAD programs
Flow charts
Logos that will be scaled (resized)
Cartoons and clip art
Graphics on websites
Because they have very small file sizes.
This allows them to load quickly.
Fonts and specialized text effects
Popular Vector Graphic Software
Xara Xtreme
Adobe Illustrator
CorelDraw
DXF - AutoCAD
Inkscape – open source software similar to Adobe
Illustrator.
Common Vector File Formats
AI – Adobe Illustrator
Industry standard used by developers of vector
graphics.
Used to create, save, and archive original artwork.
EPS – Encapsulated Postscript
Meta Graphic
Graphics developers generally save a copy of the AI
file in EPS format because it can be opened by
computers running different operating systems.
Preferred format for vendors/clients who use the
graphics in publications due to its portability.
Meta Graphics
Can contain vector and raster data.
Shapes in vector graphics can be filled with
textures and patterns that are raster graphics.
Useful when layering text on top of raster
graphics.
Examples
WMF – Windows Metafile
EPS – Encapsulated Postscript
More Vector Formats
SVG – Scalable Vector Graphics
Standard format created by W3C
Versatile, all-purpose vector format
CDR – Corel Draw
DXF – AutoCAD
WMF – Windows Metafile
Vector Images
Vector images (also called
outline images) are images
made with lines, text, and
shapes.
Test type is considered to
be vector because it is
composed of lines and
curves.
Lecture
Two
Advantages of Vector Images
Vector graphics are
resolution independent,
which means they can be
output to the highest quality
at any scale.
Vector graphic images
normally have much smaller
file sizes than raster-based
bitmaps.
Changing or transforming the
characteristics of a vector
Lecture
Two object does not effect or
distort the object.
Advantages of Vector Images
Vector images are not
limited to rectangular
shapes like bitmaps.
An image can be
enlarged or reduced
without affecting the
quality of the image.
There is no background
unless it is placed
Lecture
Two
behind the image as a
layer
Advantages of Vector Images
Vector images have the appearance of artistic form such
as cartoons.
Vector images can be easily converted to bitmap images.
Lines and curves are easily defined and will always be
smooth and retain their continuity.
Lecture
Two
Disadvantages of Vector Images
The main disadvantage is
they are not
photorealistic.
Vector images are usually
filled with solid or
gradient colors but lack in
depth and appearance in
the values and colors of a
true continuous tone
image.
Lecture
Two
Creating Vector Images
API