Write a Program to draw Putpixel in C

/*Putpixel*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>

int main()
{
   int gm,gd=DETECT;

   initgraph(&gd,&gm,"C:\\turboc3\\bgi");

   outtextxy(300,170,"Putpixel");
   putpixel(315,190,YELLOW);

   getch();
   closegraph();
   return 0;
}

Previous
Next Post »