Bresenham's Line Drawing Algorithm: Nehrurevathy Department of Bca
Bresenham's Line Drawing Algorithm: Nehrurevathy Department of Bca
Algorithm
NEHRUREVATHY
DEPARTMENT OF BCA
Bresenham's Line Algorithm
Advantage:
1. It involves only integer arithmetic, so it is simple.
2. It avoids the generation of duplicate points.
3. It can be implemented using hardware because it does not
use multiplication and division.
4. It is faster as compared to DDA (Digital Differential
Analyzer) because it does not involve floating point
calculations like DDA Algorithm.
Disadvantage:
1. This algorithm is meant for basic line drawing only
Initializing is not a part of Bresenham's line algorithm. So to
draw smooth lines, you should want to look into a different
algorithm.