Save The type of the file depends on the extension of the filename. This function can be used to save a screenshot of the program by first retrieving the contents of the screen to a Bitmap with CopyFromScreen. See the examples for how to do this. Examples Bitmap bmp( ... );
// Save the contents of the Bitmap as mybmp.png // bmp.Save( "mybmp.png" ); // Save a screenshot of the program as screenshot.png // Bitmap screenImage( SCREEN_W, SCREEN_H ); screenImage.CopyFromScreen( 0, 0 ); screenImage.Save( "screenshot.png" ); Other functions of the class Bitmap
Questions about Save? Click here. |