Lecture-4-Scan Conversion Bresenhams Algorithm
Lecture-4-Scan Conversion Bresenhams Algorithm
4
(x , y )
k k
between (3, 3) and
3 (3, 4)
(x +1, y )
We would like the
k k
2
point that is closer to
2 3 4 5
the original line
Deriving The Bresenham Line Algorithm
18 k pk (xk+1,yk+1)
17 0
16 1
15 2
3
14
4
13
5
12
6
11
7
10
8
20 21 22 23 24 25 26 27 28 29 30 9
Bresenham Exercise
Go through the steps of the Bresenham line
drawing algorithm for a line going from
(21,12) to (29,16)
Bresenham Exercise (cont…)
18 k pk (xk+1,yk+1)
17 0
16 1
15 2
14 3
13 4
5
12
6
11
7
10
8
20 21 22 23 24 25 26 27 28 29 30
Bresenham Line Algorithm Summary