Question discussion

The DDA (Digital Differential Analyzer) line-drawing algorithm works by

2352Medium DSSSB TGT Computer Science 0 replies 1 views
0

The DDA (Digital Differential Analyzer) line-drawing algorithm works by

  • Afilling the line from its two end points towards the centre
  • Busing only integer additions and a decision parameter to choose the next pixel
  • Csolving the line equation for every pixel with a multiplication
  • Dtaking unit steps along the axis of greater change and adding the slope to compute the other coordinate
Correct answer: D

Explanation

DDA increments the major axis by one pixel at each step and adds the slope (a floating-point value) to the other coordinate, rounding it to find the pixel.

Discussion 0

Nobody has replied yet. Start the discussion!