Graphics 02 Vecot Raster
Graphics 02 Vecot Raster
Display Hardware
Video Display Devices
Cathode Ray Tube (CRT)
Liquid Crystal Display (LCD)
Light-emitting diodes (LED)
Hard-Copy Devices
Ink-jet printer
Laser printer
Film recorder
Electrostatic printer
Pen plotter
Review
The three most popular image formats used on the Web (PNG, JPEG
, and GIF) are bitmap formats. The Scalable Vector Graphics (SVG) f
ormat comes in a distant fourth due to a legacy of poor support for
vector graphics in early browsers. Today however, all major browser
s support the SVG (Scalable Vector Graphics) format.
Bitmap formats are best for images that need to have a wide range
of color gradations, such as most photographs. Vector formats, on t
he other hand, are better for images that consist of a few areas of s
olid color. Examples of images that are well suited for the vector for
mat include logos and type.
Bitmap Examples
Problems
• A raster image is resolution-dependant
because it contains a fixed number of pixels
that are used to create the image.
– 160 x 120, 800 x 600, 1400 x 1050
• Since there is a fixed and limited number of
pixels, a raster image will lose quality if
enlarged beyond that number of pixels as the
computer will have to 'make up' the missing
information.
Image Resolution
Making Bigger
DPI is critical!
Printers: 300 dpi, 600 dpi
Monitors: 72 dpi (Internet pictures)
If you download a picture from the Internet to
print out, make sure it’s BIG!
Vector Graphics
Vector graphics are created from mathematical
formulas used to define lines, shapes and
curves.
Vectors can have various attributes such as line
thickness, length and color.
For example, in a vector image, a square is drawn as
four lines connected at the corners.
Vector graphics are resolution-independent
because the vector objects are drawn
mathematically in the computer.
Vector Graphics
• How to generate an image using vectors
– A line is represented by endpoints (10,10) to (90,90)
– The points along the line are computed using a line
equation
• y = mx + b
– If you want the image larger, no
problem…
Points, Lines and Fill
Vector Image
• Resolution Independent
– Regardless of how much the image is enlarged or
reduced, the image definition and quality remain
the same.
• Small File Sizes
– Easily transferred over the Internet.
Disadvantages of Vectors
advantages of vector:
very fine detail of line drawings (sometimes curves), whereas
raster suffers from jagged edge problem due to pixels (aliasing
error , quantization errors)
geometry objects (lines) whereas raster only handles pixels
raster display computes all pixels on each line.
advantages of raster:
cheaper
colours, textures, realism
unlimited complexity of picture: whatever you put in refresh
buffer, whereas vector complexity limited by refresh rate
Conceptual Framework for Interactive Graphics