Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Closegraph Function - Computer Graphics CG Program

closegraph deallocates all the allocated Memory of the Graphics system. It then restores the screen to the mode it was in before you called initgraph. (The graphic system released the memory, such as pilots, sources and an internal buffer, through a call to _graphfreemem.)

Statement: void closegraph();
#include
#include

main()
{
   int gd = DETECT, gm;

   initgraph(&gd, &gm, "C:\\TC\\BGI");

   outtext("Press any key to close the graphics mode.");

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


This post first appeared on Ask For Program, please read the originial post: here

Share the post

Closegraph Function - Computer Graphics CG Program

×

Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription

×