Capturing a Graphics Image


You have written a Pro-SiMPLE program that produces an image on the 640x480 graphics screen, and now you would like to be able to save that image to disk.

If you are fortunate enough to be using one of the "older" versions of Windows (such as Windows 98, Windows Me, etc.), all you have to do is press the "Print Screen" button on your keyboard, and then paste the image into the MSPAINT program (where it can then be saved to disk). But if you are using Windows Xp, it appears that you do not have that convenience. (With Windows Xp, the "Print Screen" button does not seem to operate on the 640x480 graphics screen.)

However, there is an easy solution to the problem: Simply utilize this Snapshot task which will save all (or any rectangular portion) of the graphics screen to a specified file as a 16 color bitmap image.

For example, the following program will draw a circle and then save the image (the entire graphics screen) onto a file named CIRCLE.BMP in the root directory of the C drive:

            Circle (320, 240, 100)
            snapshot ("C:\\CIRCLE.BMP") @



  [ Webmaster | FAQ's | Home Page | Contact Us ]