Java Program In Computer graphics

5th Semester

1. Write a java program to draw a line using DDA Algorithm.



2.Write a java program to draw a line using Brasenhem Algorithm

 

3. Write a java program to draw a line using mid-point Algorithm.



4.Write a java program to perform translation on a line.

5.Write a java program to perform scaling on a line about origin.

 

7.Write a java program to perform scaling on a line at an arbitrary point.



8.Write a java program to perform rotation on a line about origin in anticlockwise/ counterclockwise direction.

9.Write a program to perform shearing on a rectangle through x-direction.



10.Write a program to perform shearing on a rectangle through y-direction.

  11.Write a program to perform shearing along XY axis

12.Write a program to perform reflection on a line along X-axis.

13.  Write a program to perform reflection on a line along Y-axis



14.Write a program to perform reflection on a line about origin.

 

15.Write a program to perform reflection on a line about Y = X





16.Write a program to perform reflection on a line about Y = -X.