UNIT-1st Computer Graphics
UNIT-1st Computer Graphics
G RAPHICS-150313
Hemlata Arya
Assistant Professor
Department of Computer Science and Engineering
UNIT-1
Introduction to C o m p u t e r
Graphics
Basics of Computer Graphics
❖ Computer graphics is an art of drawing pictures on computer screens with the help of
programming. It involves computations, creation, and manipulation of data. In other words, we
can say that computer graphics is a rendering tool for the generation and manipulation of
images.
❖ Computer graphics is a sub-field of computer science which studies methods for digitally
synthesizing and manipulating visual content. Although the term often refers to the study of
three-dimensional computer graphics, it also encompasses two-dimensional graphics and image
processing.
❖ Computer graphics deals with creation, manipulation and storage of different type of
images and objects. Some of the applications of computer graphics are: Computer Art:
Using computer graphics we can create fine and commercial art which include animation
packages, paint packages.
Cathode Ray Tube
The primary output device in a graphical system is the video monitor. The main element of a video monitor
is the Cathode Ray Tube CRT, shown in the following illustration.
➢ The electron beam passes through focusing and deflection systems that direct it towards
specified positions on the phosphor-coated screen.
➢ When the beam hits the screen, the phosphor emits a small spot of light at each position contacted by
the electron beam.
➢ It redraws the picture by directing the electron beam back over the same screen points quickly.
Figure: CRT
Types of graphics?
There are two ways Random scan and Raster scan by which we can display an object on
the screen.
❖ Raster Scan
In a raster scan system, the electron beam is swept across the screen, one row at a time
from top to bottom. As the electron beam moves across each row, the beam intensity is
turned on and off to create a pattern of illuminated spots.
Picture definition is stored in memory area called the Refresh Buffer or Frame Buffer. This
memory area holds the set of intensity values for all the screen points. Stored intensity
values are then retrieved from the refresh buffer and “painted” on the screen one
row scanline at a time as shown in the following illustration.
Each screen point is referred to as a pixel picture element or pel. At the end of each scan
line, the electron beam returns to the left side of the screen to begin displaying the next scan
line.
Figure: Raster Scan
Vector Scan / Random Scan
In this technique, the electron beam is directed only to the part of the screen where the
picture is to be drawn rather than scanning from left to right and top to bottom as in
raster scan. It is also called vector display, stroke-writing display, or calligraphic
display.
Random-scan displays are designed to draw all the component lines of a picture 30 to
60 times each second.
Figure: Vector Scan
Application of Computer Graphics
Computer Graphics has numerous applications, some of which are listed below −
➢ Computer graphics user interfaces GUIs − A graphic, mouse-oriented paradigm which allows the
user to interact with a computer.
Advantages:
1. Higher Quality
2.More precise results or products
3.Greater Productivity
2. Resolution: Use to describe the number of pixels that are used on display image.
3.Aspect Ratio: It is the ratio of width to its height. Its measure is unit in length or number of
pixels.
Aspect Ratio =
Direct View Storage Tubes (Storage
tube graphics display):
DVST terminals also use the random scan approach to generate the image on the CRT
screen. The term "storage tube" refers to the ability of the screen to retain the image which has
been projected against it, thus avoiding the need to rewrite the image constantly.
Disadvantage:
1.It is not possible to erase the selected part of a picture.
2.It is not suitable for dynamic graphics applications.
Example: Small T.V. monitor, calculator, pocket video games, laptop computers, an advertisement
board in elevator.
1. Emissive Display: The emissive displays are devices that convert electrical energy into
light. Examples are Plasma Panel, thin film electroluminescent display and LED (Light
Emitting Diodes).
2.Non-Emissive Display: The Non-Emissive displays use optical effects to convert sunlight
or light from some other source into graphics patterns. Examples are LCD (Liquid Crystal
Device).
Plasma Panel Display:
Plasma-Panels are also called as Gas-Discharge Display. It consists of an array of small lights.
Lights are fluorescent in nature. The essential components of the plasma-panel display are:
1. Cathode: It consists of fine wires. It delivers negative voltage to gas cells. The voltage is
released along with the negative axis.
2.Anode: It also consists of line wires. It delivers positive voltage. The voltage is supplied along
positive axis.
3.Fluorescent cells: It consists of small pockets of gas liquids when the voltage is applied to this
liquid (neon gas) it emits light.
4.Glass Plates: These plates act as capacitors. The voltage will be applied, the cell will glow
continuously.
The gas will slow when there is a significant voltage difference between horizontal and vertical
wires. The voltage level is kept between 90 volts to 120 volts. Plasma level does not require
refreshing. Erasing is done by reducing the voltage to 90 volts.
Each cell of plasma has two states, so cell is said to be stable. Displayable point in plasma panel is
made by the crossing of the horizontal and vertical grid. The resolution of the plasma panel can be
up to 512 * 512 pixels.
Figure shows the state of cell in plasma panel display:
Advantage:
1. High Resolution
2. Large screen size is also possible.
3. Less Volume
4.Less weight
5.Flicker Free Display
Disadvantage:
1. Poor Resolution
2. Wiring requirement anode and the cathode is complex.
3. Its addressing is also complex.
What is refreshing of a CRT?
In graphics, Refresh CRT means the repeated drawing of a picture to keep the glowing of
the Phosphor intact. Explanation: CRT in graphics is the cathode rays or the electron beam
that is emitted through a gun of electron and which crosses the system of deflection and
focusing.
In a computer display, to refresh is to redraw the image information from memory. Computer
or television displays have to be refreshed because they don't have the capacity to hold a stable
image. Refreshing browser content ensures that the most currently updated information will be
displayed.
What is the importance of refreshing a computer?
The refresh option marks all the components of the screen as dirty, and the whole screen is
recreated in the next frame and displayed on your monitor. That's the prime job of the Refresh
option in Windows.
A display appears stable if the refresh rate is high enough, but if the refresh rate is too low, the
display will flicker, causing eye strain and headaches.
What is meant by flickering in computer graphics?
television scanning in which each frame is scanned in two successive fields each consisting
of all the odd or all the even horizontal lines.
Where is interlaced scanning used?
In TV reception and some monitors, interlaced scanning is used in a cathode-ray tube display, or
raster. The odd-numbered lines are traced first, and the even-numbered lines are traced next. We
then get the odd-field and even-field scans per frame. The interlaced scheme is illustrated in Fig.