Professional Documents
Culture Documents
The display area of the part selected or the form in which the selected part is viewed is known as view port.
Disadvantage:
The accumulation of round of error is successive addition of the floating point increments is used to find the pixel position but it take lot of time to compute the pixel position.
Digital Differential Analyzer Line Drawing Algorithm Arithmetic DDA algorithm usesfloating points i.e. Real Arithmetic. Bresenhams algorithm uses fixed points i.e. Integer Arithmetic. Bresenhams algorithm uses onlysubtraction and addition in its operations. Bresenhams algorithm is faster than DDA algorithm in line drawing because it performs only addition and subtraction in its calculation and uses only integer arithmetic so it runs significantly faster. Bresenhams algorithm is more efficient and much accurate than DDA algorithm. Bresenhams algorithm can draw circles and curves with much more accuracy than DDA algorithm. Bresenhams algorithm does not round off but takes the incremental value in its operation. Bresenhams Line Drawing Algorithm
DDA algorithm Operations usesmultiplication and divisionin its operations. DDA algorithm is ratherslowly than Bresenhams algorithm in line drawing because it uses real arithmetic (floatingpoint operations).
Speed
Accuracy & DDA algorithm is not as accurate and Efficiency efficient as Bresenham algorithm. DDA algorithm can draw circles and Drawing curves but that are not as accurate as Bresenhams algorithm. DDA algorithm round off the coordinates to integer that is nearest to the line.
Round Off
Expensive DDA algorithm uses an enormous number Bresenhams algorithm is less expensive than