PIXEL PROGRAM


#include<stdlib.h>
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
#include<alloc.h>
int x,y;
int   main()
{
int gdrives=DETECT,gmode;
initgraph(&gdrives,&gmode,"f:\\tc\\bin\\bgi");
printf("enter value of x");
scanf("%d",&x);
printf("enter the value of y");
scanf("%d",&y);
putpixel(x,y,4);
getch();
closegraph();
return 0;
}

Comments

Popular posts from this blog

REFLECTION OF A TRIANGLE (COMPUTER GRAPHICS)