Lecture O4 Scan Conversion A Line
Lecture O4 Scan Conversion A Line
Lecture 4
Scan Conversion
It is a process of representing graphics objects a
collection of pixels.
The graphics objects are continuous.
The pixels used are discrete.
Each pixel can have either on or off state.
0 is represented by pixel off and 1 is represented using
pixel on.
Using this ability graphics computer represent picture
having discrete dots.
Any model of graphics can be reproduced with a dense
matrix of dots or points.
The process of converting is also called as rasterization.
1
3/24/2024
Pixel or Pel
The term pixel is a short form of the picture element.
It is also called a point or dot.
It is the smallest picture unit accepted by display devices.
A picture is constructed from hundreds of such pixels.
Lines, circle, arcs, characters; curves are drawn with closely
spaced pixels.
To display the digit or letter matrix of pixels is used.
The closer the dots or pixels are, the better will be the quality
of picture.
So the quality of the picture is directly proportional to the
density of pixels on the screen.
2
3/24/2024
Address of a Pixel
Pixels are also defined as the smallest addressable unit or element of the
screen.
P (5, 5) used to represent a pixel in the 5th row and the 5th column.
Frame Buffer: Each pixel has some intensity value which is represented in
memory of computer called a frame buffer.
Frame Buffer is also called a refresh buffer.
This memory is a storage area for storing pixels values using which pictures
are displayed.
It is also called as digital memory.
Inside the buffer, image is stored as a pattern of binary digits either 0 or 1.
So there is an array of 0 or 1 used to represent the picture.
In black and white monitors, black pixels are represented using 1's and white
pixels are represented using 0's.
bitmap: In case of systems having one bit per pixel frame buffer is called a
bitmap.
pixmap: In systems with multiple bits per pixel it is called a pixmap.
3
3/24/2024
4
3/24/2024
5
3/24/2024
6
3/24/2024
Intermediate points
Now calculate intermediate points
Let x = 1 ⟹ y = 3 x 1 ⟹ y = 3
Let x = 2 ⟹ y = 3 x 2 ⟹ y = 6
Let x = 3 ⟹ y = 3 x 3 ⟹ y = 9
Let x = 4 ⟹ y = 3 x 4 ⟹ y = 12
Let x = 5 ⟹ y = 3 x 5 ⟹ y = 15
Let x = 6 ⟹ y = 3 x 6 ⟹ y = 18
So points are P1 (0,0)
P2 (1,3)
P3 (2,6)
P4 (3,9)
P5 (4,12)
P6 (5,15)
P7 (6,18)
7
3/24/2024