Posts

Showing posts with the label bresenham

Bresenhams Line Drawing Program in c++

Program to implement Bresenhams Line Drawing Algorithm #include<iostream.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> class lines             {             private:                    int length,x1,y1,x2,y2,x,y,dx,dy,wx,wy,w,width;             public:                   lines();       //Constructor                   void showline();                ...