Browsing Category
Computer Graphics
Basic concept and sample programs in Computer Graphics for Engineering Students, visit the Download Section for PDF eBooks and Sample Projects on the same.
Drawing a line using DDA(Digital Differential Analyzer) Algorithm
DDA Algorithm
The Digital Differential Analyzer DDA is a scan conversion line algorithm based on calculating either the difference of y or x ie ?y or ?x. The pixel positions are calculated initially- uses raster characteristics so that…
To draw a line by using Bresenham’s line drawing algorithm
to draw a line by using Bresenham's line drawing algorithm
// modified version checks slope sign and function realization
#include
#include
#include
#include
#include
void func(int, int, int, int);
void main()
{…