Friday 31 January 2014

how to drow a pixel on Screen by c code

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;
}

No comments:

Post a Comment

How to change Background color by selecting color from Listview

activitymain.xml file::> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xm...