Algorithm of Bresenhams line drawing
Write down the Bresenhams line drawing algorithm?
Expert
Step 1: Input the line end-points and store the left end-point in (X0, Y0)
Step 2: Load the (X0, Y0) to the frame buffer.
Step 3: Compute constants Δx, Δy, 2 Δy, -2 Δx, and get the decision parameters as: P0 = 2 Δy – Δx
Step 4: At all Xk all along the line, beginning at k = 0, execute the following test
If Pk < 0, then the next point to plot is (Xk+1, Yk) and Pk+1 = Pk + 2 Δy. Or else, next point to the plot is (Xk+1, Yk+1) and Pk+1 = Pk+2 Δy - 2 Δx.
Step 5: Repeat the step 4 Δx times.
What are information and data, and how are they associated in a database?
What do you mean by the term character up vector? Also explain pixel phasing?
List out the merits and demerits of Plasma panel display?
Describe in detail the flood fill algorithm?
Illustrate the merits of laser printers?
Define the term shadow masking?
Describe the Depth Buffer technique in short? Also describe its features?
List out the entire different Text clipping? Briefly describe all of them.
Explain the advantages and disadvantages of DVST?
Describe in detail the term computer graphics?
18,76,764
1959814 Asked
3,689
Active Tutors
1456334
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!