#include"Stdio.h" #include"conio.h" #include"graphics.h" #include"alloc.h" void main() { int x,y,i,j,area; char *ch; int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tc\\bgi"); cleardevice(); setfillstyle(1,RED); circle(40,40,25); floodfill(45,45,WHITE); area=imagesize(15,15,65,65); ch=(char *)malloc(area); getimage(15,15,65,65,ch); y=40; // putimage(x,y,ch,XOR_PUT); cleardevice(); for(x=40;x<=500;) { putimage(x,y,ch,COPY_PUT); delay(100); // putimage(x,y,ch,COPY_PUT); x+=5;
} getch(); }
|
| Author: Lenin 05 Jun 2008 | Member Level: Diamond Points : 2 |
interesting article , buddy , continue to contribute more. wishing gud future in ISC . Always honesty pays Think different WINNERS DO NOT DO DIFFERENT THINGS, BUT THEY DO THINGS DIFFERENTLY Always encourage the new mwmbers ..that is the energydrink for them ..me too
|