C Program to Draw a Pixel in Graphics

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main( )
{
  int gd = DETECT, gm;
  initgraph(&gd, &gm, "C:\\TC\\BGI");
  putpixel(100,100,RED); //Putpixel(X1,Y1,Color)
  getch( );
  closegraph( );
}

OUTPUT:

No comments:

Post a Comment