Professional Documents
Culture Documents
CHAPTER 1
2
Computer Graphics chapter 1
The origins of computer graphics: In 1950 the first computer driven display,
attached to MIT's computer, was used to generate simple pictures. This
display used a Cathode-Ray tube (CRT). Interactive computer graphics
made progress and the term computer graphics was first used in 1960.
3
Computer Graphics chapter 1
5
Computer Graphics chapter 1
6
Computer Graphics chapter 1
A good user interface makes the program not only easy to use and learn
but also easier to operate and more efficient.
7
Computer Graphics chapter 1
How the Interactive Graphics display works
The modern graphics display is extremely simple in construction.
It consists of three components:
1- A digital memory, or frame buffer, in which the displayed
image is stored as a matrix of intensity values.
2- A monitor.
3- A display controller, which is a simple interface that passes
the contents of the frame buffer to the monitor.
Inside the frame buffer the image is stored as a pattern of
binary digital numbers, which represent a rectangular array
of picture elements, or pixel.
The pixel is the smallest addressable screen element. In the
simplest case where we wish to store only black and white
images, we can represent black pixels by 0's in the frame
buffer and white pixels by 1's.
8
The display controller simply reads each
successive byte of data from the frame buffer
and converts each 0 and 1 to the corresponding
video signal. This signal is then fed to the
monitor.
If we wish to change the displayed picture all
we need to do is to change of modify the frame
buffer contents to represent the new pattern of
pixels.
Computer Graphics chapter 1
Graphics system
1- Graphics input Devices
9
Computer Graphics chapter 1
10
Computer Graphics chapter 1
11
Computer Graphics chapter 1
13
Computer Graphics chapter 1
Frame buffer
Each screen pixel corresponding to a particular entry in a two-
dimensional array residing in memory.
This memory is called a frame buffer or a bit map.
The number of rows in the frame buffer array equals the number of the
raster lines on the display screen.
The number of columns in this array equals the number of pixels on each
raster line.
The term pixel is also used to describe the row and column location in the
frame buffer arrays that corresponding to the screen location. A 512* 512
display screen requires 262,141 pixel memory locations.
Whenever we wish to display a pixel on screen, a specific value is placed
into the corresponding memory location in the frame buffer array.
14
Computer Graphics chapter 1
15
Computer Graphics chapter 1
Display controller
The hardware device that read the contents of the frame buffer
into video buffer , which then converts the digital representation
of a string of pixel values into analog voltage signals that are sent
serially to the video display screen(CRT).
16
Computer Graphics chapter 1
Random Vector-display
We’ve seen how the raster–scan system uses frame buffer to display
an image in scan-line: from top to bottom, left to right. This is not only
way to create an image using a refresh CRT, indeed if we wish to draw
only lines, a line-drawing graphic system is preferred which is call
random-vector.
In this system there is memory region , called a display file as shown in
Figure 3, consisting of line-drawing commands such as “ draw line
from A to B”. Either a special display processor or the CPU inserts the
correct line-drawing command into the display file.
Unlike a raster –scan system, it is not necessary to refresh the entire
screen but only those parts of the screen where there is a straight line
or vector.
Draw line AB
Draw line BC
Draw line CD
Draw line DA
Display File Display Screen 17
Vector Scan Display Raster Scan Display
1. In
1 vector scan display the beam is In raster scan display the beam is moved all over
moved between the end points of the the screen one scan line at a time, from top to
graphics primitives. bottom and then back to top.
2 Vector display flickers when the In raster display, the refresh process is
number of primitives in the buffer Independent of the complexity of the image.
becomes too large.
3 Vector display only draws line Raster display has ability to display areas filled
characters. with solid colors or patterns.
4 Vector display draws continuous and Raster display can display mathematically smooth
smooth lines. lines, polygons, and boundaries of curved
primitives only by approximating them with pixels
on the raster grid.
5 Cost is more. Cost is low
6 Scan conversion is not required. Graphics primitives are specified in terms of their
endpoints and must be scan converted into their
corresponding pixels in the frame buffer.
18
Computer Graphics chapter 1
Flat-panel display:
Compared to CRT’s , flat panel display are much thinner , weight less ,
consuming less power , and do not emit radiation .
Thus they are better for portable computers. There are several types of flat-
panel monitors, but the most common is the Liquid Crystal Display (LCD).
The disadvantage of LCD is that their image can
be difficult to see in bright light . For this reason,
laptop computers users often look for shady places
to sit when working outdoors or near windows.
A bigger disadvantage of LCD monitors is their limited
viewing angle. With most CRT, you can see the image
clearly even when standing at an angle to the screen. In LCD monitors, the
viewing angles shrinks; as you increase your angle to the screen, the image
become fuzzy quickly.
In many older flat panel systems, the user must face the screen nearly
straight on to the image clearly. Technological improvement have extended
the viewing angles of flat-panel monitors while causing their price to
increase. 19
Computer Graphics chapter 1
Screen clarity
The screen clarity depends on three qualities: Resolution , Dot
pitch, Refresh rate .
1- Resolution:
The clarity or sharpness of the display screen is called resolution, the
more pixels per square inch, and the better of resolution.
A high resolution graphic has more dots(pixels) per a specific area,
while a low resolution graphic has a lower dots or pixels.
Resolution applies to both graphics designed for print and graphics
created for the display system.
A screen with 640 ×480 pixels multiplied together equals 307200
pixels . the screen will be less clear and sharp than a screen with
800×600(equals 480, 000) or 1024×768(equals 786,432)pixels.
2- Dot pitch:
Is the amount of space between the centers of adjacent pixels, the
closer the dots, the crisper the image.
For crisp images , dot pitch should less than 0.31 millimeter.
On CRTs, the dot pitch is typically from 0.28 to 0.51mm, while large
presentation monitors may go up to 1 mm.
On LCD monitors, dot pitch is typically from 0.16 to 0.29mm.
3- Refresh rates:-
Refresh rate is the number of times per second that the pixels
recharged so their glow remains bright.
In dual-scan screens, the top and the bottoms of the screens are
refreshed independently at twice the rate of single scan screen,
producing more clarity and richer colors .
in general , displays are refreshed 45 to 100 times per second.
21