Thursday, 22 August 2013

Suggested List of Programs for 7CS7 (2013 - 2014)

Suggested List of Programs for 7CS7 (2013 - 2014)


Please find the below document as the suggested list of Programs for your Lab of Computer Graphics and Multimedia.


Saturday, 17 August 2013

Friday, 16 August 2013

Various Algorithms in Computer Graphics Curriculum

Digital Differential Analyzer Algorithm


This section will help you understanding DDA Algorithm for line drawing to be implemented in C Graphics using Turbo C / Borland C.

You can find the algorithm at this link.

You have to follow the exact pattern while writing answers that ask you to write algorithms.

If you find any problem in implementing the DDA Algorithm in the software provided, kindly let me know through the comments section, I will try to answer them as quickly as possible. 


The Sample Screen Shot for two coordinates 2,2 and 10,8 is shown below:




Bresenham's Algorithm for Line Drawing


This section will help you understanding Bresenham's Algorithm for line drawing to be implemented in C Graphics using Turbo C / Borland C.

You can find the algorithm at this link.
If you find any problem in implementing the Bresenham's Algorithm in the software provided, kindly let me know through the comments section, I will try to answer them as quickly as possible. 


The Sample Screen Shot for two coordinates 0,0 and 10,6 ( slope, |m| <= 1) is shown below:



Bresenham's Algorithm for Circle Drawing

aka Midpoint Circle Drawing Algorithm


This section will help you understanding Bresenham's Algorithm for circle drawing to be implemented in C Graphics using Turbo C / Borland C.

You can find the algorithm at this link.
If you find any problem in implementing the Bresenham's Algorithm in the software provided, kindly let me know through the comments section, I will try to answer them as quickly as possible. 


The Sample Screen Shot for the input is as:


For the above input, the circle drawn is as:


Note: The Intersection of the horizontal and vertical rectangle is the ORIGIN (0,0)


Cohen - Sutherland Line Clipping Algorithm


This section will help you understanding Cohen - Sutherland Line Clipping Algorithm to be implemented in C Graphics using Turbo C / Borland C.

You can find the algorithm at this link.
If you find any problem in implementing the Cohen - Sutherland Line Clipping Algorithm in the software provided, kindly let me know through the comments section, I will try to answer them as quickly as possible. 


The Sample Screen Shot for the input is as:



Output for the above given input is as: