Computer Graphics Unit-1 Notes
Computer Graphics Unit-1 Notes
1.1 Introduction-Definition
Computer Graphics involves technology to access. The
Process transforms and presents information in a visual form. The role of computer
graphics insensible. In today life, computer graphics has now become a common
element in user interfaces, T.V. commercial motion pictures.
Computer Graphics is the creation of pictures with the help of a computer. The end
product of the computer graphics is a picture it may be a business graph, drawing,
and engineering.
Suppose a shoe manufacturing company want to show the sale of shoes for five
years. For this vast amount of information is to store. So a lot of time and memory
will be needed. This method will be tough to understand by a common man. In this
situation graphics is a better alternative. Graphics tools are charts and graphs.
Using graphs, data can be represented in pictorial form. A picture can be
understood easily just with a single look.
2. Use in Biology:
Molecular biologist can display a picture of molecules and gain insight into
their structure with the help of computer graphics.
3. Computer-Generated Maps:
Town planners and transportation engineers can use computer-generated
maps which display data useful to them in their planning work.
4. Architect:
Architect can explore an alternative solution to design problems at an
interactive graphics terminal. In this way, they can test many more solutions
that would not be possible without the computer.
5. Presentation Graphics:
Example of presentation Graphics are bar charts, line graphs, pie charts and
other displays showing relationships between multiple parameters.
Presentation Graphics is commonly used to summarize Financial Reports,
Statistical Reports, Mathematical Reports, Scientific Reports, and Economic
Data for research reports.
8. Visualization:
It is used for visualization of scientists, engineers, medical personnel,
business analysts for the study of a large amount of information.
9. Educational Software:
Computer Graphics is used in the development of educational software for
making computer-aided instruction.
10.Printing Technology:
Computer Graphics is used for printing technology and textile design.
GUI Benefits
1. A CRT has the electron beam directed only to the parts of the screen where
an image is to be drawn.
2. Produce smooth line drawings.
3. High Resolution
Disadvantages:
1. Random-Scan monitors cannot display realistic shades scenes.
Frame Buffer is also known as Raster or bit map. In Frame Buffer the positions are
called picture elements or pixels. Beam refreshing is of two types. First is
horizontal retracing and second is vertical retracing. When the beam starts from the
top left corner and reaches the bottom right scale, it will again return to the top left
side called at vertical retrace. Then it will again more horizontally from top to
bottom call as horizontal retracing shown in fig:
1. Interlaced Scanning
2. Non-Interlaced Scanning
In Interlaced scanning, each horizontal line of the screen is traced from top to
bottom. Due to which fading of display of object may occur. This problem can be
solved by Non-Interlaced scanning. In this first of all odd numbered lines are
traced or visited by an electron beam, then in the next circle, even number of lines
are located.
For non-interlaced display refresh rate of 30 frames per second used. But it gives
flickers. For interlaced display refresh rate of 60 frames per second is used.
Advantages:
1. Realistic image
2. Million Different colors to be generated
3. Shadow Scenes are possible.
Disadvantages:
1. Low Resolution
2. Expensive
1.6 Cathode Ray Tubes, Color CRT Monitors, Direct View Storage
Tube.Display Devices
Display devices:
Cathode Ray Tube (CRT)
CRT stands for Cathode Ray Tube. CRT is a technology used in traditional
computer monitors and televisions. The image on CRT display is created by firing
electrons from the back of the tube of phosphorus located towards the front of the
screen.
Once the electron heats the phosphorus, they light up, and they are projected on a
screen. The color you view on the screen is produced by a blend of red, blue and
green light.
The CRT Monitor display by using a combination of phosphors. The phosphors are
different colors. There are two popular approaches for producing color displays
with a CRT are:
The Beam-Penetration method has been used with random-scan monitors. In this
method, the CRT screen is coated with two layers of phosphor, red and green and
the displayed color depends on how far the electron beam penetrates the phosphor
layers. This method produces four colors only, red, green, orange and yellow. A
beam of slow electrons excites the outer red layer only; hence screen shows red
color only. A beam of high-speed electrons excites the inner green layer. Thus
screen shows a green color.
Disadvantages:
1. Only four colors are possible
2. Quality of pictures is not as good as with another method.
Shadow-Mask Method:
Shadow Mask Method is commonly used in Raster-Scan System because they
produce a much wider range of colors than the beam-penetration method. It is used
in the majority of color TV sets and monitors. A shadow mask CRT has 3
phosphor color dots at each pixel position.
o One phosphor dot emits: red light
o Another emits: green light
o Third emits: blue light
This type of CRT has 3 electron guns, one for each color dot and a shadow mask
grid just behind the phosphor coated screen.
Shadow mask grid is pierced with small round holes in a triangular pattern.
Direct View Storage Tube (DVST) resembles CRT as it uses electron gun to draw
picture and phosphor coated screen to display it. The phosphor used in this is of
high persistence. DVST does not use refresh buffer or frame buffer to store picture
definition. Picture definition is stored in inside CRT in form positive charged
distribution. Because of this reason DVST is knows as Storage Type CRT. In
DVST no refreshing is required as result picture drawn on DVST will be seen for
several minutes before fading.
Components of DVST:
1. Electron guns –
Two electron guns are used in DVST : Primary Gun and Flood Gun. Primary
gun is used to store picture pattern. Flood gun is used to maintain picture
display on phosphor coated screen.
2. Phosphor Coated Screen –
In DVST the inner surface of CRT is coated with phosphor crystals is of high
persistence that emit light when beam of electrons strike them.
In DVST similar with CRT electron gun and phosphor coated method is used.
But in this no electron beam is used to directly writing pictures on screen, but
instead of this we can used Storage mesh wire grid is used it is just located behind
phosphor coated screen. There is also another grid located just behind storage
mesh is called Collector and this purpose is to smooth out flow of flood electrons.
The flood gun produce large number of electrons, this negatively charged grid
reduces speed of these electrons. Then electrons pass through collector at low
velocity and attracted by positive charged portions of storage mesh and strike at
portions of phosphor coated screen to display picture. Some electrons get repelled
by other portions of mesh that are negatively charged. Since the collector has
slowly down electrons, in this way they not able to produce sharpened images. So
to reduce this problem, screen itself is maintained at a high positive potential by
means of voltage applied to thin aluminum coating between tube face and
phosphor.
HPGL2 and DMPL are two programming languages used by later plotters from
Hewlett-Packard and Houston Instruments, respectively. Initially, plotters had
two separate pens, one moved horizontally, and one moved vertically. These
plotters were limited in terms of image complexity because they produced outputs
at a slow rate. Modern plotters employ a sliding roller to move the paper against a
stationary pen. Plotter pens are usually hollow fiber rods with a sharpened end.
Until the drawing is finished, the ink supply flows and dispenses through the
sharpened tip through the centre of the rod; the paper travels vertically and
horizontally against the pen.
Applications of Plotters
o Draw charts
o Computer-aided designs
o Architectural Blueprints
o Textile Printing
o Banners and Billboards
o Electric circuit layouts
o Geographical layouts
o Building plans
o Line Art
A joystick is an input device that can be used for controlling the movement of the
cursor or a pointer in a computer device. The pointer/cursor movement is
controlled by maneuvering a lever on the joystick. The input device is mostly
used for gaming applications and, sometimes, in graphics applications. A joystick
also can be helpful as an input device for people with movement disabilities.
The joystick is mostly used when there is a need to perform a direct pointing or
when a precise function is needed. There are different types of joysticks such as
Similar to the mouse in movement and usage, joysticks also include buttons,
sometimes known as triggers. The difference between the mouse and the joystick
is largely based on the fact that the cursor/pointer continues the movement in the
direction of the joystick unless it is kept upright, whereas the mouse prevents the
cursor from further movement until it is moved.
One of the noticeable advantages of the joystick is its ability to provide fast
interactions, which are much needed in gaming applications. The joystick
provides a much-needed gaming experience, which is better in quality compared
to that provided by other input devices. It has a simple design and is easy to learn
and use. It is often inexpensive.
Computer joystick ports
Today, most computer joysticks connect to the computer using a USB port.
Below is a listing of all of the type of ports that have accepted a joystick.
Bluetooth
Game port
Serial Port
USB
Light Pen (similar to the pen) is a pointing device which is used to select a
displayed menu item or draw pictures on the monitor screen. It consists of a
photocell and an optical system placed in a small tube. When its tip is moved
over the monitor screen, and pen button is pressed, its photocell sensing element
detects the screen location and sends the corresponding signals to the CPU.
Uses of light pen:
1. Light Pens can be used as input coordinate positions by providing
necessary arrangements.
2. If background color or intensity, a light pen can be used as a locator.
3. It is used as a standard pick device with many graphics system.