CG 2
CG 2
It is difficult to display an image of any size on the computer screen. This method is
simplified by using Computer graphics. Graphics on the computer are produced by
using various algorithms and techniques. This tutorial describes how a rich visual
experience is provided to the user by explaining how all these processed by the
computer.
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.
Today computer graphics is entirely different from the earlier one. It is not possible. It
is an interactive user can control the structure of an object of various input devices.
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.
For some training applications, particular systems are designed. For example Flight
Simulator.
Flight Simulator: It helps in giving training to the pilots of airplanes. These pilots
spend much of their training not in a real aircraft but on the ground at the controls
of a Flight Simulator.
Advantages:
1. Fuel Saving
2. Safety
3. Ability to familiarize the training with a large number of the world's airports.
2. Use in Biology: Molecular biologist can display a picture of molecules and gain
insight into their structure with the help of computer graphics.
o Financial Reports
o Statistical Reports
o Mathematical Reports
o Scientific Reports
o Managerial Reports
6. Computer Art: Computer Graphics are also used in the field of commercial arts. It
is used to generate television and advertising commercial.
10. Printing Technology: Computer Graphics is used for printing technology and
textile design.
1. LOGO
2. COREL DRAW
3. AUTO CAD
4. 3D STUDIO
5. CORE
Display Processor:
2. Display Processor
3. Display Generator
4. Display Console
Display File Memory: It is used for generation of the picture. It is used for
identification of graphic entities.
Display Controller:
1. It handles interrupt
2. It maintains timings
3. It is used for interpretation of instruction.
Display Generator:
Display Console: It contains CRT, Light Pen, and Keyboard and deflection system.
The raster scan system is a combination of some processing units. It consists of the
control processing unit (CPU) and a particular processor called a display controller.
Display Controller controls the operation of the display device. It is also called a
video controller.
Working: The video controller in the output circuitry generates the horizontal and
vertical drive signals so that the monitor can sweep. Its beam across the screen
during raster scans.
As fig showing that 2 registers (X register and Y register) are used to store the
coordinate of the screen pixels. Assume that y values of the adjacent scan lines
increased by 1 in an upward direction starting from 0 at the bottom of the screen to
ymax at the top and along each scan line the screen pixel positions or x values are
incremented by 1 from 0 at the leftmost position to x max at the rightmost position.
The origin is at the lowest left corner of the screen as in a standard Cartesian
coordinate system.
X register is set to 0 and y register is set to y max. This (x, y') address is translated into a
memory address of frame buffer where the color value for this pixel position is
stored.
The controller receives this color value (a binary no) from the frame buffer, breaks it
up into three parts and sends each element to a separate Digital-to-Analog
Converter (DAC).
These voltages, in turn, controls the intensity of 3 e-beam that are focused at the (x,
y) screen position by the horizontal and vertical drive signals.
This process is repeated for each pixel along the top scan line, each time
incrementing the X register by Y.
As pixels on the first scan line are generated, the X register is incremented
throughxmax.
Pixel along each scan line is then processed, and the procedure is repeated for each
successive scan line units pixels on the last scan line (y=0) are generated.
For a display system employing a color look-up table frame buffer value is not
directly used to control the CRT beam intensity.
It is used as an index to find the three pixel-color value from the look-up table. This
lookup operation is done for each pixel on every display cycle.
As the time available to display or refresh a single pixel in the screen is too less,
accessing the frame buffer every time for reading each pixel intensity value would
consume more time what is allowed:
Multiple adjacent pixel values are fetched to the frame buffer in single access and
stored in the register.
After every allowable time gap, the one-pixel value is shifted out from the register to
control the warm intensity for that pixel.
The procedure is repeated with the next block of pixels,and so on, thus the whole
group of pixels will be processed.
Display Devices:
The most commonly used display device is a video monitor. The operation of most
video monitors based on CRT (Cathode Ray Tube). The following display devices are
used:
6. Lookup Table
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.
Components of CRT:
4. Deflection Yoke: It is used to control the direction of the electron beam. It creates
an electric or magnetic field which will bend the electron beam as it passes through
the area. In a conventional CRT, the yoke is linked to a sweep or scan generator. The
deflection yoke which is connected to the sweep generator creates a fluctuating
electric or magnetic potential.
5. Phosphorus-coated screen: The inside front surface of every CRT is coated with
phosphors. Phosphors glow when a high-energy electron beam hits them.
Phosphorescence is the term used to characterize the light given off by a phosphor
after it has been exposed to an electron beam.
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:
2. Shadow-Mask Method
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.
Advantages:
1. Inexpensive
Disadvantages:
2. Shadow-Mask Method:
Construction: A shadow mask CRT has 3 phosphor color dots at each pixel position.
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.
Figure shows the delta-delta shadow mask method commonly used in color CRT
system.
Working: Triad arrangement of red, green, and blue guns.
The deflection system of the CRT operates on all 3 electron beams simultaneously;
the 3 electron beams are deflected and focused as a group onto the shadow mask,
which contains a sequence of holes aligned with the phosphor- dot patterns.
When the three beams pass through a hole in the shadow mask, they activate a
dotted triangle, which occurs as a small color spot on the screen.
The phosphor dots in the triangles are organized so that each electron beam can
activate only its corresponding color dot when it passes through the shadow mask.
electron guns and the corresponding red-green-blue color dots on the screen, are
aligned along one scan line rather of in a triangular pattern.
Advantage:
1. Realistic image
Disadvantage:
3. Convergence Problem
Advantages:
1. A CRT has the electron beam directed only to the parts of the screen where an
image is to be drawn.
3. High Resolution
Disadvantages:
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
Disadvantages:
1. Low Resolution
2. Expensive
5. Refresh rate depends or resolution 5. Refresh rate does not depend on the
picture.
The Flat-Panel display refers to a class of video devices that have reduced volume,
weight and power requirement compare to CRT.
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).
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.
Advantage:
1. High Resolution
3. Less Volume
4. Less weight
Disadvantage:
1. Poor Resolution
2. Wiring requirement anode and the cathode is complex.
In an LED, a matrix of diodes is organized to form the pixel positions in the display
and picture definition is stored in a refresh buffer. Data is read from the refresh
buffer and converted to voltage levels that are applied to the diodes to produce the
light pattern in the display.
Liquid Crystal Displays are the devices that produce a picture by passing polarized
light from the surroundings or from an internal light source through a liquid-crystal
material that transmits the light.
LCD uses the liquid-crystal material between two glass plates; each plate is the right
angle to each other between plates liquid is filled. One glass plate consists of rows of
conductors arranged in vertical direction. Another glass plate is consisting of a row of
conductors arranged in horizontal direction. The pixel position is determined by the
intersection of the vertical & horizontal conductor. This position is an active part of
the screen.
2. Small Size
3. Low Cost
Disadvantage:
2. LCDs do not emit light; as a result, the image has very little contrast.
3. LCDs have no color capability.
Input Devices
The Input Devices are the hardware that is used to transfer transfers input to the
computer. The data can be in the form of text, graphics, sound, and text. Output
device display data from the memory of the computer. Output can be text, numeric
data, line, polygon, and other objects.
1. Keyboard
2. Mouse
3. Trackball
4. Spaceball
5. Joystick
6. Light Pen
7. Digitizer
8. Touch Panels
9. Voice Recognition
Keyboard:
The most commonly used input device is a keyboard. The data is entered by pressing
the set of keys. All keys are labeled. A keyboard with 101 keys is called a QWERTY
keyboard.
The keyboard has alphabetic as well as numeric keys. Some special keys are also
available.
1. Numeric Keys: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
7. Numeric Keyboard: It is on the right-hand side of the keyboard and used for
fast entry of numeric data.
Function of Keyboard:
2. Keyboards are available with special features line screen co-ordinates entry,
Menu selection or graphics functions, etc.
3. Special purpose keyboards are available having buttons, dials, and switches.
Dials are used to enter scalar values. Dials also enter real numbers. Buttons
and switches are used to enter predefined function values.
Advantage:
2. Function keys are a fast and effective method of using commands, with fewer
errors.
Disadvantage:
Mouse:
A Mouse is a pointing device and used to position the pointer on the screen. It is a
small palm size box. There are two or three depression switches on the top. The
movement of the mouse along the x-axis helps in the horizontal movement of the
cursor and the movement along the y-axis helps in the vertical movement of the
cursor on the screen. The mouse cannot be used to enter text. Therefore, they are
used in conjunction with a keyboard.
Advantage:
1. Easy to use
Trackball
2. Compact Size
Spaceball:
It is similar to trackball, but it can move in six directions where trackball can move in
two directions only. The movement is recorded by the strain gauge. Strain gauge is
applied with pressure. It can be pushed and pulled in various directions. The ball has
a diameter around 7.5 cm. The ball is mounted in the base using rollers. One-third of
the ball is an inside box, the rest is outside.
Applications:
Joystick:
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:
Digitizers:
The digitizer is an operator input device, which contains a large, smooth board (the
appearance is similar to the mechanical drawing board) & an electronic tracking
device, which can be changed over the surface to follow existing lines. The electronic
tracking device contains a switch for the user to record the desire x & y coordinate
positions. The coordinates can be entered into the computer memory or stored or an
off-line storage medium such as magnetic tape.
Advantages:
Disadvantages:
1. Costly
Touch Panels:
Touch Panels is a type of display screen that has a touch-sensitive transparent panel
covering the screen. A touch screen registers input when a finger or other object
comes in contact with the screen.
When the wave signals are interrupted by some contact with the screen, that located
is recorded. Touch screens have long been used in military applications.
Voice Recognition is one of the newest, most complex input techniques used to
interact with the computer. The user inputs data by speaking into a microphone. The
simplest form of voice recognition is a one-word command spoken by one person.
Each command is isolated with pauses between the words.
Advantage:
2. Easy to use
Disadvantages: