Professional Documents
Culture Documents
Unit I
Unit I
Unit 1: Introduction of
Computer Graphics
Facilitator: Frank
Course code: CS 8205
Email: frankibrahim25@gmail.com
Tel:+255757050205
Course aim: This Course aim to empower
students with knowledge on developing and
working with computer and mobile graphics.
Objectives
To understand the fundamental computer
graphics topics
To study basic mathematical backgrounds
related to computer graphics including linear
algebra and geometry.
Understand vividly, those computer graphic
algorithms
Working through this Course:
To complete this course, you are required to
read each study units, read the textbooks and
other materials.
Each unit contains self assessment and at certain
points in the course you would be required to
submit assignment for assessment purposes.
At the end of the course there is a final
examination.
The course should take you about 16 weeks to
complete.
Assessment
There are three aspects of assessment of the course.
First is made up of self assessment exercise(quiz),
second consists of tutor marked assignments and
the third is the end of semester examination.
Continuous Assessment:
Coursework 40%
End of Semester Exam 60%
Assessment breakdown:
Test1(10) & Test 2(10) 20 Marks
Quiz 10Marks
Presentation(group) 10Marks
TEXT BOOKS
1. “Computer Graphics C version”, Donald
Hearn and M.Pauline Baker, Pearson
Education
2. “Computer Graphics Principles & practice”,
second edition in C, Foley, VanDam, Feiner
and Hughes, Pearson Education.
Introduction
Computer graphics is the field related to
generation of graphics using computer.
It includes creation, storage and manipulation
of images of object.
These object come from diverse and expanding
set of fields including physical, mathematical,
artistic, biological, and even conceptual
(abstract) structures.
It is related to the generation and the
representation of graphics by a computer using
specialized graphic software and hardware.
The graphics can be photographs, drawing,
movies, simulations etc.
Basically there are two types of computer
graphics namely
Interactive computer graphics: that is the
user controls the contents structure and
appearance of the images of objects by using
input devices.
Non-interactive computer graphics: it is
the computer graphics in which user does
not have any kind of control over the image.
Image is merely the product of static stored
program and will work according to the
instructions given in the program linearly.
The image is totally under the control of
program instructions not under the user.
Example: screen savers.
In computer graphics object are presented as a
collection of discrete picture element.
Picture element = pixel
Pixel is the smallest graphical picture or unit
represented on the computer screen.
Graphics should be generated by controlling pixel.
The control is achieved by setting the intensity
and color of the pixel which compose the screen.
The process of determining the appropriate pixels
for representing pictures or graphics object is
known as rasterization.
The process of representing continuous picture or
graphics object as a collection of discrete pixel is
called scan conversion
Raster: rectangular array of points and dots.
Pixel or picture element: one dot or picture
element of the raster.
Scan line: A row of pixel.
Basic terms
Resolution
Resolution is defined as the maximum number
of points that can be displayed horizontally and
vertically without overlap on display device.
You have probably seen that in your own computer
settings, you have monitor resolution of 640 X 480,
800 X 600, 1024 X 768, 1152 X 864, 1280 X 1024
Image resolution is the distance from one pixel to
next pixel.
The unit image pixel is ppi (pixel per inch)
In normal PC monitor it ranges between 25 to
80 pixels per inch.
Screen Resolution: It is the number of distinct
pixels in each dimension that can be displayed.
For example, a computer with a display
resolution of 1280 x 768 will produce a
maximum of 98,3040 pixels on a display screen.
Aspect Ratio
Aspect ratio is the ratio between width of an image
and the height of an image.
It is normally shown by two numbers separated
by colon, as in 4:3. Here, the primary number
tells that the picture is 4 units wide and the
subsequent number tells that the picture is 3
units high.
Solution
Size of screen = 8inch x 10 inch
Pixel per inch(resolution) = 100
Total no. of pixel = (8*100)*(10*100) = 800000 pixels
Per pixel storage = 8 bit
Total storage required in frame buffer = 800000*8bits
= 6400000 bits
= 6400000/8 bytes
= 800000 bytes
Numerical problem
Q:Consider three different raster systems with
resolutions of 640 x 480 and1280 x 1024,What size is
frame buffer (in bytes) for each of these systems to
store 12 bits per pixel?
Solution
640 x 480 x 12 bits / 8 = 450KB.
1280 x 1024 x 12 bits / 8 = 1920KB.
Solution
Aspect ratio = width/height = 8*100/10*100 = 4/5
Fluorescence/phosphorescence
When the beam electron emitted by electron
gun strikes the phosphor coated screen on the
CRT, the phosphor emits a small spot at each
position contacted by the electron beam.
It last just a fraction of millisecond.
Persistence
Persistence is defined as the time it takes the
emitted light from the screen to decay to one-
tenth of its original intensity.
The phosphor used for graphics display device
usually have persistence of 10 to 60
microsecond.
Display Devices/output devices
The most common graphics output device is the
video monitor which is based on the standard
cathode ray tube (CRT) design, but several
other technologies exist and solid state monitors
may eventually predominate.
Cathode-Ray Tubes (CRT)
A cathode ray tube is an evacuated glass tube,
with a heating element on one end and
phosphor-coated screen on the other end.
Raster-Scan Displays
The most common type of graphics monitor
employing a CRT is the raster-scan display, based
on television technology.
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 a 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.
Each screen point is referred to as a pixel or pel
(shortened forms of picture element).
Home television sets and printers are examples of
other systems using raster-scan methods.
Color CRT Monitors
To display color pictures, combination of
phosphorus is used that emits different colored
light.
There are two different techniques for producing
color displays with a CRT.
Beam Penetration Method
Shadow Mask Method
Color CRT Monitors
To display color pictures, combination of
phosphorus is used that emits different colored
light.
There are two different techniques for producing
color displays with a CRT.
Beam Penetration Method
Shadow Mask Method
Electron bean scans entire screen to Electron bean scan only the part of
draw a picture screen where picture information is
present
frank