Unit-1 Notes
Unit-1 Notes
Unit-1
1.1 Introduction
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.
In computer graphics, two or three-dimensional pictures can be created that are used for
research. Many hardware devices algorithm has been developing for improving the speed of
picture generation with the passes of time. It includes the creation storage of models and image
of objects. These models for various fields like engineering, mathematical and so on.
Interactive computer graphics work using the concept of two-way communication between
computer users. The computer will receive signals from the input device, and the picture is
modified accordingly. Picture will be changed quickly when we apply command.
1.2 Application of Computer Graphics
Presentation Graphics
To produce illustrations which summarize various kinds of data. Except 2D, 3D graphics are
good tools for reporting more complex data.
Computer Art
Painting packages are available. With cordless, pressure-sensitive stylus, artists can produce
electronic paintings which simulate different brush strokes, brush widths, and colors.
Photorealistic techniques, morphing and animations are very useful in commercial art. For
films, 24 frames per second are required. For video monitor, 30 frames per second are required.
Entertainment
Motion pictures, Music videos, and TV shows, Computer games.
Visualization
For analyzing scientific, engineering, medical and business data or behavior. Converting data to
visual form can help to understand mass volume of data very efficiently.
Image Processing
Image processing is to apply techniques to modify or interpret existing pictures. It is widely
used in medical applications.
Non-interactive Graphics involves only one-way communication between the computer and the
user, User can see the produced image, and he cannot make any change in the image.
(b) Interactive Computer Graphics: In interactive Computer Graphics user have some
controls over the picture, i.e., the user can make any change in the produced image. One
example of it is the ping-pong game.
Interactive Computer Graphics require two-way communication between the computer and the
user. A User can see the image and make any change by sending his command with an input
device.
2. A Monitor likes a home T.V. set without the tuning and receiving electronics.
3. Display Controller or Video Controller: It passes the contents of the frame buffer to the
monitor.
Frame Buffer: A digital frame buffer is large, contiguous piece of computer memory used to
hold or map the image displayed on the screen.
• At a minimum, there is 1 memory bit for each pixel in the raster. This amount of
memory is called a bit plane.
• A 1024 x 1024 element requires 220 (210=1024;220=1024 x 1024)sq.raster or 1,048,576
memory bits in a single bit plane.
• The picture is built up in the frame buffer one bit at a time.
• A memory bit has only two states (binary 0 or 1), a single bit plane yields a black and
white (monochrome display).
• As frame buffer is a digital device write raster CRT is an analog device.
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 =
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:
Main Components of CRT are:
1. Electron Gun: Electron gun consisting of a series of elements, primarily a heating filament
(heater) and a cathode. The electron gun creates a source of electrons which are focused into a
narrow beam directed at the face of the CRT.
3. Focusing system: It is used to create a clear picture by focusing the electrons into a narrow
beam.
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.
Advantages:
• A CRT has the electron beam directed only to the parts of the screen where an image is
to be drawn.
• Produce smooth line drawings.
• High Resolution
Disadvantages:
• 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:
Types of Scanning or travelling of beam in Raster Scan
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:
• Realistic image
• Million Different colors to be generated
• Shadow Scenes are possible.
Disadvantages:
• Low Resolution
• Expensive
Advantages:
• Inexpensive
Disadvantages:
• Only four colors are possible
• Quality of pictures is not as good as with another method.
2. 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.
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.
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.
Inline arrangement: Another configuration for the 3 electron guns is an Inline arrangement in which the
3
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.
This inline arrangement of electron guns in easier to keep in alignment and is commonly used in high-
resolution color CRT's.
Advantage:
• Realistic image
• Million different colors to be generated
• Shadow scenes are possible
Disadvantage:
• Relatively expensive compared with the monochrome CRT.
• Relatively poor resolution
• Convergence Problem
The keyboard has alphabetic as well as numeric keys. Some special keys are also available.
• Numeric Keys: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
• Alphabetic keys: a to z (lower case), A to Z (upper case)
• Special Control keys: Ctrl, Shift, Alt
• Special Symbol Keys: ; , " ? @ ~ ? :
• Cursor Control Keys: ↑ → ← ↓
• Function Keys: F1 F2 F3....F9.
Numeric Keyboard: It is on the right-hand side of the keyboard and used for fast entry of numeric
data.
Function of Keyboard:
Alphanumeric Keyboards are used in CAD. (Computer Aided Drafting)
Keyboards are available with special features line screen co-ordinates entry, Menu selection or graphics
functions, etc.
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:
• Suitable for entering numeric data.
• Function keys are a fast and effective method of using commands, with fewer errors.
Disadvantage:
• Keyboard is not suitable for graphics input.
2. 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:
• Easy to use
• Not very expensive
3. Trackball
It is a pointing device. It is similar to a mouse. This is mainly used in notebook or laptop computer,
instead of a mouse. This is a ball which is half inserted, and by changing fingers on the ball, the pointer
can be moved.
Advantage:
Trackball is stationary, so it does not require much space to use it.
Compact Size
4. 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:
• It is used for three-dimensional positioning of the object.
• It is used to select various functions in the field of virtual reality.
• It is applicable in CAD applications.
• Animation is also done using spaceball.
• It is used in the area of simulation and modeling.
5. Joystick:
A Joystick is also a pointing device which is used to change cursor position on a monitor screen.
Joystick is a stick having a spherical ball as its both lower and upper ends as shown in fig. The lower
spherical ball moves in a socket. The joystick can be changed in all four directions. The function of a
joystick is similar to that of the mouse. It is mainly used in Computer Aided Designing (CAD) and
playing computer games.
6. Light Pen
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:
• Light Pens can be used as input coordinate positions by providing necessary arrangements.
• If background color or intensity, a light pen can be used as a locator.
• It is used as a standard pick device with many graphics system.
• It can be used as stroke input devices.
• It can be used as valuators
7. 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:
• Drawing can easily be changed.
• It provides the capability of interactive graphics.
Disadvantages:
• Costly
• Suitable only for applications which required high-resolution graphics.
8. 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 used in some graphics workstations as input devices to accept voice commands.
The voice-system input can be used to initiate graphics operations or to enter data. These systems
operate by matching an input against a predefined dictionary of words and phrases.
Scanning can be of the black and white or colored picture. On stored picture 2D or 3D rotations,
scaling and other operations can be applied.
Printers:
Printer is the most important output device, which is used to print data on paper.
Types of Printers: There are many types of printers which are classified on various criteria as
shown in fig:
Plotters
Plotters are a special type of output device. It is suitable for applications:
Advantage:
• It can produce high-quality output on large sheets.
• It is used to provide the high precision drawing.
• It can produce graphics of various sizes.
• The speed of producing output is high.