19-12-2012, 06:25 PM
BRESENHAM’S LINE DRAWING
BRESENHAM’S LINE DRAWING ALGORITHM.docx (Size: 12.79 KB / Downloads: 18)
Algorithm:
1. Start the program.
2. Declare the variables and declare the DRAWLINE function.
3. Using input primitive function for detecting and initializing the graph.
4. To give the parameter and using line drawing to draw the line in X-axis and Y – axis.
5. In DRAWLINE function,
6. Declare the parameter dx and dy with arguments of the function in difference magnitude.
7. Using if conditions assign X-axis and Y-axis ending points for the parameters.
8. Using WHILE loop put the pixel by the parameters by increasing order in between X-axis and Y-axis.
9. Stop the program.