Lecture 1 (Graphics Preliminaries) 1
Lecture 1 (Graphics Preliminaries) 1
Lecture -1
What is Computer Graphics?
Graphics are visual presentations on some surface, such as a wall, canvas, screen,
paper, or stone to illustrate, or entertain.
Graphics word is derived from the word graph.
A graph has x and y axis. Same way something which is created in digital world is
seen on a digital screen, this screen also has x and y axis.
Computer graphics is an art of drawing pictures, lines, charts, etc using computers
with the help of programming. Computer graphics is made up of number of pixels.
Pixel is the smallest graphical picture or unit represented on the computer screen.
In short we can say that computer graphics is the technology that deals with designs and
pictures on computers.
CSC 455 2
Graphics consist of
All point addressable graphics-
the art of drawing items on the basic output devices such as
display screen by means of addressing different parts of the
display (as one might fill in squares on a piece of graph paper),
CSC 455 3
Picture elements (Pixels)
CSC 455 4
Identification of pixel
Axis- In order to pick out a colored square- identification of the square
(pixel) is done by considering the screen as having two lines of reference
or axis, at right angle to each other at the left and top of the screen,
Y- axis- The vertical axis at the left of screen (downward from left top),
X- axis- The horizontal axis at the top of screen ( towards right from left
top)
Origin- The point at which the X-axis and the Y-axis intersect (the left top
of the screen)
Coordinates- To identify a particular pixel on the graph specify how far
along the X-axis it is and then how far along the Y-axis.
Coordinates of pixels- The position of the pixel is then the pair of
numbers showing the distances on X-axis and Y-axis. This pair of number
in brackets is called coordinates of the pixel.
CSC 455 5
Identification of pixel
VGA mode- the number of pixels in VGA mode is fixed at 640 x 480. (480
rows of 640 pixels = total 307200 pixels)
Origin
(0,0) X-axis (639, 0)
Y-axis
CSC 455 6
Address of pixel
• Pixel is the smallest addressable screen element which can be
controlled.
• The monitor can be visualized as one dimensional array of
pixels.
• Thus each pixel has an address, which can be computed as :
address of P(i,j) = addr(0,0) + j x imax + i,
where imax is the maximum number of pixels in a row,
j = number of rows .
0<= i < imax and 0<= j < jmax .
(In standard VGA mode imax = 640 and jmax = 480)
CSC 455 7
Types of Computer Graphics
Basically, There are two types of computer
graphics:
CSC 455 8