Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: graphics
Title:
  DDAline
Question:
#include<iostream>
#include<graphics.h>
using namespace std;
class pixel
{
public:
int x,y,dx,dy,m,count;
int xinc,yinc,i;
void DDALine(int x1,int y1,int x2,int y2,int color)
{
dx=x2-x1;
dy=y2-y1;
if(dx>=dy)

count=dx;
else
count=dy;
m=dx/dy;
xinc=dx/count;
yinc=dy/count;
if(dx>dy
Answers: