View Single Post
Old 11-11-2004, 02:44 AM   #11 (permalink)
tom_mk
Registered User
 
Join Date: Nov 2004
Posts: 2
tom_mk is on a distinguished road
this is wat i tried..but still having problem

if(dx = 0) // vertical line
{

if( y1 > y2)
{
// y1 above y2
for(int count = y2; count <= y1; count ++)
{
SetPixel(x2,count,color[0],color[1],color[2]);
}

}
else
{
// y1 below y2
for(int count = y1; count <= y2; count ++)
{
SetPixel(x1,count,color[0],color[1],color[2]);
}
}
}
tom_mk is offline   Reply With Quote