Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objectives
After studying this unit, you should be able to:
z Understanding the Fundamentals of computer graphics.
z Discuss the Applications of computer graphics in different areas.
z Explain the Random and raster scan display.
z Understand Display devices
1.1 Introduction
Computer graphics is a subfield of computer science which studies methods for digitally
synthesizing and manipulating visual content. Computer graphics is a creation and
manipulation of pictures with the aids of computers.
Two types of computer graphics techniques can be used:
1 Interactive computer graphics and
2 Passive or non-interactive computer graphics.
Amity Directorate of Distance & Online Education
2 Computer Graphics
In interactive computer graphics user having control over image by providing some
input device so that he/she can signal requests to the computer. It involves two-way
Notes communications between computer and user. User gives signals using input devices
and computer modify displayed image accordingly. In this way we maintain
conversation or dialogue with computer. For example like video games.
Passive computer graphics: Computer graphics in which operations that transfer
automatically without operator intervention i.e. users don’t perform any dialogue with
computer system unlike interactive computer graphics.
Basic graphics system:
Notes
CAT scan method is best for detecting brain tumors and other types of disorders.
Medical scientist use computer graphics for detecting problems of sensitive organs,
tissues and other types of disorder.
(a) (b)
Figure 1.8: (a) Image and (b) Bloopers
Graphics elements such as windows, cursor, menu, icons are so common that it is
difficult to imagine computing without them.
Notes
Icons represent different options for painting, drawing, zooming, typing and other
operations connected with picture construction. Today, nearly all professional
programmers must have an understanding of graphics in order to accept input and
present output to users.
Keyboard
Keyboard is a commonly used input device. When a key is pressed, the position of key
pressed is found by internal circuitry to find out corresponding row and column position
of the key. This set of information passed to a decoder which gives an equivalent ASCII
code of pressed key. Output in ASCII forms goes to CPU. ASCII allows computer to
encode keyboards characters. Using ASCII keyboard is able to communicate with
computer by sending a specific 7-bit code for each key.
In addition to these keys several keyboard provide additional functionality such as
save drawing, rotate and remove objects are commonly found on functional keys.
Mouse
Mouse is an input devices used in interactive computer graphics. On upper side of
mouse there are two or three buttons placed using which some actions are controlled.
Mouse is placed on soft rubber base known as mouse pad. From movement of wheels
of mouse CPU gets information about horizontal or vertical movement and accordingly
cursor will move. For selecting an item proper action key is pressed. Nearly in all
computer graphics applications, mouse is an essential input device.
Paddle Control
In paddle control two control knobs are provided, one for movement of x and other for
movement of y. It is an analog input device.
Light Pen
It is a pointing device. It has a light sensitive tip which is excited when light is emitted,
when an illuminated point on screen comes in its field of view. User will point with the
pen to perform an operation such as drawing of a line or rotating an object on a CRT.
A light pen is an event driven device. Processor has to wait till it across an
illuminated point on the screen to obtain any information.
Image Scanner
Graphs, drawing, black and white photos or text can be stored for processing using
image scanners. After getting internal representation of a picture we can apply several
transformations to rotate, scale a picture to a particular screen area. We can apply
various image processing methods to modify array representation of the picture.
Touch Screen
It is an input device in which user can enter data by touching some sensitive areas of
the screen. After invoking the program, it display possible choices and user have to
select his/her choices.
Normally touch screen uses a group of infrared light emitting diodes along a
horizontal edge and along vertical edge contain light detectors. When fingers are placed
Notes on screen, light beam are interrupted and sensed by build in sensors.
In some raster scan system like TV sets each frame buffer is displayed into two
passes. In first pass beam sweeps across odd number of scan line scan line from top to
Amity Directorate of Distance & Online Education
10 Computer Graphics
bottom, then vertical retrace followed by second pass in which remaining lines are
scanned. Above procedure called interlaced refresh procedure.
Notes
In Interactive raster scan display in addition to a CPU, we need a special purpose
processor called video controller or display controller, which is used to control operation
of display device. A part of system memory is used as frame buffer. Display controller
access the frame buffer to refresh the screen.
In high quality system two frame buffers are used, one used for refreshing and other
is used for intensity values.