CG Notes Module1
CG Notes Module1
Computer Graphics
MODULE - I
Overview of Computer Graphics System: Video Display Devices – Raster Scan Systems –
Random – ScanSystems - Graphics Monitors and Workstations – Input Devices – Hardcopy Devices
– Graphics Software.
Computer graphics is commonly seen as a computer science branch that deals with the computerized
image fusion theory and technology. As simple as a triangle outline, a computer-generated image
may represent a scene. The computer has become a powerful tool for producing images quickly and
economically.
When a computer is used to create images, the same process is followed as creating images
manually. The process’s primary computational steps give a boost to several important computer
graphics areas.
Also on computers, the term computer graphics covers almost everything. Here in the computer
graphics program’s classroom, we think of computer graphics as drawing images on machines,
often known as rendering. The images can be photos, sketches, animations, or pictures of items
imagined. Or they maybe pictures, we cannot see directly, like internal body parts.
We have put a great deal of our time to develop how computer images can replicate real-world
scenes. We want objects on computers not only to look more real, but also their colors to be more
realistic and how different materials appear. We can call it “real synthesis of the image.”
The term computer graphics has been used to define “almost everything on the computer, including
text orsound.” Generally, the term computer graphics refer to the following things:
In interactive computer graphics, users have some controls over the image, i.e., the user can make
any changes to the image produced.
For Example:
Ping-pong game.
Drawing on touch screens.
Display weather forecast or other moving charts/graphs on the screen.
Animating pictures or graphics in movies.
Graphics animation in video games.
The modern display of graphics is very simple to build. It is composed of three components:
Display controller or video controller
Digital memory or frame buffer
Television monitor
1. Display controller or video controller- It’s a Memory Buffer and TV Monitor interface. Its task
is to pass Frame Buffer’s contents to the monitor. The display controller reads each continuous byte
of Memoryframe buffer data and converts 0’s and 1’s into appropriate video signals.
In today’s term, the display controller is recognized as a display card, and one of our choices can be
a VGA(Video Graphics Array) card with a resolution of 640×480. Display Controller is also capable
of displaying the image in colors.
3
2. Digital memory or frame buffer-This is a place where images and pictures are stored as an array
(matrix of 0 & 1, 0 represents darkness, and 1 represents image or picture). It is also called a frame
buffer.
In today’s term frame buffer is called V-RAM (video RAM), and it helps to store the image in bit form. It helps to
increase the speed of graphics.
Representation of graphics
1. Raster Graphics: In raster graphics, the image is presented as a rectangular grid of colored squares.
Raster images are also called bitmap images. Bitmap images are stored as the collection of small
individualdots called pixels.
Bitmap images require high resolution and anti-aliasing for a smooth appearance.
2. Vector Graphics: In vector graphics, the image is represented in the form of continuous
geometric objects: line, curve, etc.
Vector images are not based on pixel pattern. They use mathematical formulas to draw line and curves.
Thelines and curves can be combined to create an image.
Raster images are the collection of the The Vector images are composed
pixel. ofpaths.
Raster image takes less space to store. Vector image takes more space.
File Extension: .BMP, .TIF, .JPG etc. File Extension: .SVG, .PDF, .AI
etc.
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.
Video Display
DevicesCathode
Ray Tube
CRT stands for Cathode ray tube. It is a technology which is used in traditional computer monitor
andtelevision.
Cathode ray tube is a particular type of vacuum tube that displays images when an electron beam
collideson the radiant surface.
Component of CRT:
Electron Gun: The electron gun is made up of several elements, mainly a heating filament
(heater)and a cathode.
The electron gun is a source of electrons focused on a narrow beam facing the CRT.
Focusing & Accelerating Anodes: These anodes are used to produce a narrow and sharply
5
focusedbeam of electrons.
Horizontal & Vertical Deflection Plates: These plates are used to guide the path of the
electron the beam. The plates produce an electromagnetic field that bends the electron beam
through the areaas it travels.
Phosphorus-coated Screen: The phosphorus coated screen is used to produce bright spots
when thehigh-velocity electron beam hits it.
The operation of CRT is very simple −
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 scan line 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.
6
In this technique, the electron beam is directed only to the part of the screen where the picture is to
be drawnrather 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.
Picture definition is stored as a set of line-drawing commands in an area of memory referred to as the
refreshdisplay file. To display a specified picture, the system cycles through the set of commands in
the display file, drawing each component line in turn. After all the line-drawing commands are
processed, the system cycles back to the first line command in the list.
Random-scan displays are designed to draw all the component lines of a picture 30 to 60 times each
second.
Computer Graphics has numerous applications, some of which are listed below −
Structure:
Working: A Shadow Mask is a metal plate with tiny holes present inside a color monitor.
A Shadow Mask directs the beam by consuming the electrons so that the beam hits only the desired
point and displays a resulting picture.
It has three different guns. These guns direct their beams to shadow mask, which allows them to
pass. It is a task of a shadow mask to direct the beam on its particular dot on the screen and produce
a picture on the screen.
A Shadow Mask can display a wider range of pictures than beam penetration.
8
Advantages:
Liquid crystal display (LCD): The LCD depends upon the light modulating properties of liquid
crystals. LCD is used in watches and portable computers. LCD requires an AC power supply instead
of DC, so it is difficult to use it in circuits. It generally works on flat panel display technology. LCD
consumes less power than LED. The LCD screen uses the liquid crystal to turn pixels on or off.
Liquid Crystals are a mixture of solid and liquid. When the current flows inside it, its position
changes into the desired color.
Advantages:
Disadvantages:
Light Emitting Diode (LED): LED is a device which emits when current passes through it. It is a
semiconductor device. The size of the LED is small, so we can easily make any display unit by
arranging a large number of LEDs. LED consumes more power compared to LCD. LED is used on
TV, smartphones, motor vehicles, traffic light, etc. LEDs are powerful in structure, so they are
9
Advantages:
Disadvantages:
Direct View Storage Tube (DVST): It is used to store the picture information as a charge
distributionbehind the phosphor-coated screen.There are two guns used in DVST:
Advantages:
Disadvantages:
Plasma Display: It is a type of flat panel display which uses tiny plasma cells. It is also known as the
Gas-Discharge display.
10
Input Devices
Following are some of the important input devices which are used in a computer −
Keyboard
Mouse
Joy Stick
Light pen
Track Ball
Scanner
Graphic Tablet
Microphone
Magnetic Ink Card Reader(MICR)
Optical Character Reader(OCR)
Bar Code Reader
Optical Mark Reader(OMR)
Keyboard
Keyboard is the most common and very popular input device which helps to input data to the
computer.
Keyboards are of two sizes 84 keys or 101/102 keys, but now keyboards with 104 keys or 108 keys
are alsoavailable for Windows and Internet.
2 Numeric Keypad
It is used to enter the numeric data or cursor movement. Generally, it consists of a
set of 17 keys that are laid out in the same configuration used by most adding
machinesand calculators.
3 Function Keys
The twelve function keys are present on the keyboard which are arranged in a row
at the top of the keyboard. Each function key has a unique meaning and is used for
somespecific purpose.
4 Control keys
These keys provide cursor and screen control. It includes four directional arrow
keys. Control keys also include Home, End, Insert, Delete, Page Up, Page Down,
Control(Ctrl), Alternate(Alt), Escape(Esc).
5 Special Purpose Keys
Keyboard also contains some special purpose keys such as Enter, Shift, Caps
Lock,Num Lock, Space bar, Tab, and Print Screen.
Mouse
Mouse is the most popular pointing device. It is a very famous cursor-control device having a small
palm size box with a round ball at its base, which senses the movement of the mouse and sends
corresponding signals to the CPU when the mouse buttons are pressed.
Generally, it has two buttons called the left and the right button and a wheel is present between the
buttons.A mouse can be used to control the position of the cursor on the screen, but it cannot be used
to enter text into the computer.
Advantages
Easy to use
Not very expensive
Moves the cursor faster than the arrow keys of the keyboard.
Joystick
Joystick is also a pointing device, which is used to move the cursor position on a monitor screen. It is
a stick having a spherical ball at its both lower and upper ends. The lower spherical ball moves in a
12
The function of the joystick is similar to that of a mouse. It is mainly used in Computer Aided
Designing(CAD) and playing computer games.
Light Pen
Light pen is a pointing device similar to a pen. It is used to select a displayed menu item or draw
pictureson the monitor screen. It consists of a photocell and an optical system placed in a small tube.
When the tip of a light pen is moved over the monitor screen and the pen button is pressed, its
photocellsensing element detects the screen location and sends the corresponding signal to the CPU.
Track Ball
Track ball is an input device that is mostly used in notebook or laptop computer, instead of a mouse.
This isa ball which is half inserted and by moving fingers on the ball, the pointer can be moved.
Since the whole device is not moved, a track ball requires less space than a mouse. A track ball
comes invarious shapes like a ball, a button, or a square.
Scanner
Scanner is an input device, which works more like a photocopy machine. It is used when some
13
informationis available on paper and it is to be transferred to the hard disk of the computer for
further manipulation.
Scanner captures images from the source which are then converted into a digital form that can be
stored onthe disk. These images can be edited before they are printed.
Digitizer
Digitizer is an input device which converts analog information into digital form. Digitizer can
convert a signal from the television or camera into a series of numbers that could be stored in a
computer. They can be used by the computer to create a picture of whatever the camera had been
pointed at.
Digitizer is also known as Tablet or Graphics Tablet as it converts graphics and pictorial data into
binary inputs. A graphic tablet as digitizer is used for fine works of drawing and image manipulation
applications.
Bar Code Reader scans a bar code image, converts it into an alphanumeric value, which is then fed
to the computer that the bar code reader is connected to.
Graphics Workstations:
14
Generic term for a high-performance desktop computer that is used in the context of CAD
drawings, 3D modelling or video editing. Usually includes one or more 64-bit processors, ultra-fast
drives connected in RAID, one or more tabs graphs of high performance such as NVIDIA Quadro.
Workstation, a high-performance computer system that is basically designed for a single user and
has advanced graphics capabilities, large storage capacity, and a powerful central processing unit. A
workstation is more capable than a personal computer (PC) but is less advanced than a server (which
can manage a large network of peripheral PCs or workstations and handle immense data-processing
and reporting tasks). The term workstation was also sometimes ascribed to dumb terminals (i.e.,
those without any processing capacity) that were connected to mainframe computers.
GRAPHICS SOFTWARE:
Computer software applications that are used to display, create, and edit computer graphics. While
many types of software will “support graphics”, these programs are usually limited in what they can
do with graphics; for example, word processors can be used to create simple line art or to display
images alongside text, while some spreadsheet and database programs will allow data to be
displayed in the form of graphs and charts but neither type of software will give you the ability to
edit graphics in detail.
Graphics software, however, is capable of editing graphics in a multitude of ways and includes a
number of types of software, including paint programs, illustration and design programs,
photo/image editors, presentation graphics software, animation software, computer aided design
software, and some desktop publishing software. Graphics software can edit bitmap and/or vector
graphics, and can be used to design label templates. Examples of graphics software include
Adobe Illustrator,
Photoshop,
In Design,
CorelDraw,
Inkscape,
15
Microsoft Paint
Paint.Net.
A printer is a peripheral device which is used to represent the graphics or text on paper. The
quality ismeasured by its resolution. The resolution of any printer is measured in dot per inch (dpi).
The printer usually works with the computer and connected via a cable. In present, many digital
devicesupport printer features so that we can use Bluetooth, Wi-fi, and cloud technology to print.
Types of Printers
Some types of printers are:
Impact Printers
Non-impact Printers
Impact Printers
In impact printers, there is a physical contact established between the print head, ribbon, ink-
cartridge, and paper. The printers hit print head on an ink-filled ribbon than the letter prints on the
paper. Impact printers areworks like a typewriter. Impact printers print the characters by striking them
on the ribbon, which is then pressed on the paper. Characteristics of Impact Printers are the following −
Very low consumable costs
Very noisy
Useful for bulk printing due to low cost
There is physical contact with the paper to produce an image
Advantages
Inexpensive
Widely Used
Other language characters can be printed
Disadvantages
Slow Speed
Poor Quality
Non-impact Printers
Non-impact printers print the characters without using the ribbon. These printers print a complete
page at atime, thus they are also called as Page Printers.
Laser Printers
Inkjet Printers
Laser Printers
These are non-impact page printers. They use laser lights to produce the dots needed to form the
charactersto be printed on a page.
17
Advantages
Disadvantages
Expensive
Cannot be used to produce multiple copies of a document in a single printing
Inkjet Printers
Inkjet printers are non-impact character printers based on a relatively new technology. They
print charactersby spraying small drops of ink onto paper. Inkjet printers produce high quality output
with presentable features.
They make less noise because no hammering is done and these have many styles of printing modes
available. Color printing is also possible. Some models of Inkjet printers can produce multiple copies
of printing also.
Advantages
Disadvantages