Chapter 1
Chapter 1
Prepared By:
Ishita Theba
Computer Engineering Dept,
A.D.I.T.
Contents
Introduction to computer graphics
Basic terms
Characteristics of computer graphics
Application areas of computer graphics
Introduction to computer graphics
It refers to creation, storage and manipulation of
pictures and images using a digital computer.
Effective tool for presenting information.
Basic Terms
1) Digital Image: A 2x2 representation consisting of
an 2D array of dots or picture elements is
termed as digital image.
It consists of discrete pixels or picture
elements.
2) Pixel: The smallest unit of a screen addressable
by the computer.
3) Resolution: The number of pixel per unit length
(in horizontal and vertical direction) is called
resolution of an image.
It is usually quoted as width x height with the
units in pixels.
eg. 3 x 2 inch image at resolution 300 contains
540,000 pixels.
4) Aspect Ratio: The ratio of image’s width to its
height measured in unit length (or no. of pixels)
is referred as aspect ratio.
eg. Aspect ratio of an image having width=3
inches and height=2 inches is 1.5
Aspect ratio of the image having resolution
1024 x 768 is same as that of 640 x 480.
i.e. aspect ratio is 4/3.
Characteristics of computer graphics
Interactive nature and preview capability.
- create drawing as per requirement.
Impressive to look and user friendly.
Can do work faster.
eg. Coloring, hatching, shading.
Production of high quality graphics packages are
not cheap.
- reasons:
-development of graphics package consume
much time.
-hardware to run the package is quite
expensive involving large storage, very high
resolution monitors, fast machines with math co-
processors.
Applications of Computer Graphics
Computer Aided Design (CAD)
Presentation Graphics
Computer Art
Entertainment (animation, games, …)
Education & Training
Visualization (scientific & business)
Image Processing
Graphical User Interfaces
1.Computer Aided Design (CAD)
Used in design of buildings, automobiles, aircraft,
watercraft, spacecraft, computers, textiles & many other
products
Objects are displayed in wire frame outline form ( overall
shape and internal features of an object).
Software packages provide multi-window environment.( It
shows enlarged sections or different views of an object.
Graphics design package provides standard shapes (useful
for repeated placements).
Circuits and networks constructed with repeated graphical
shapes. Also personalized symbols can be created.
Animations are also used in CAD applications
Realistic displays of architectural design permits simulated
“walk” through the rooms (virtual -reality systems)
Graphics for Engineering and Architectural
System
Design of Building, Automobile, Aircraft,
Machine etc.
Metacreation Painter
Examples :
Electronic painting
Picture painted electronically on
a graphics tablet (digitizer) using a stylus
Cordless, pressure sensitive stylus
Morphing
A graphics method in which one object is
transformed into another
4.Entertainment
Movie Industry
Used in motion pictures, music
videos, and television shows.
Used in making of cartoon
animation films.
Graphics objects are combined with the
actors and live scenes.
In Fortran:
CALL GPL(N, X, Y) // Where X & Y are 1-D
array of coordinate values for line endpoints.
In C:
ppolyline(n, pts); // where pts is a list of
coordinates end point positions.
Limitations of PHIGS:
Although PHIGS presents a
specification for basic graphics functions, it
does not provide a standard methodology for
a graphics interface to output devices.
Nor does it specify methods for storing and
transmitting pictures.
Separate standards have been developed for
these areas.
Computer Graphics Interface (CGI) system:
Standardization for device interface
methods is given in the (CGI) system.
Computer Graphics Metafile (CGM) system:
It specifies standards for archiving and
transporting pictures.