how to drow a pixel on Screen by c code
============================================================
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm,x=50,y=50;
initgraph(&gd, &gm, "C:\\TC\\BGI");
putpixel(x, y,WHITE);
getch();
closegraph();
return 0;
}
============================================================
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm,x=50,y=50;
initgraph(&gd, &gm, "C:\\TC\\BGI");
putpixel(x, y,WHITE);
getch();
closegraph();
return 0;
}
No comments:
Post a Comment