COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Raster line algorithm
|
|
Raster scan algorithm
|
|
Random line algorithm
|
|
Random scan algorithm
|
Detailed explanation-1: -Raster line algorithms display line-type attributes by plotting pixel spans. For the various dashed, dotted, and dot-dashed pattern, the line-drawing procedure outputs sections of contiguous pixels along the line path, skipping over a number of intervening pixels between the solid spans.
Detailed explanation-2: -The line and curve attributes include the current position, brush style, brush color, pen style, pen color, transformation, and so on.
Detailed explanation-3: -The DDA algorithm is a faster method for calculating pixel positions than the direct use of Eq. 2.1(refer Lecture 7 notes).
Detailed explanation-4: -Explanation: setLineWidthScaleFactor (lw) function can be used to set line-width attribute.
Detailed explanation-5: -Answer: d Explanation: Type, width and colors are the basic attributes of line.