GetMemoryBitmap
Returns a memory bitmap copy of the specified region of the Bitmap. If you have rendered to the Bitmap you may wish to retrieve a copy of the modified image to the memory. Examples Bitmap bmp( ... );
// Get an Allegro BITMAP copy of the Bitmap // BITMAP *allegroBmp = bmp.GetMemoryBitmap(); // Get an Allegro BITMAP copy of the 20 x 10 pixel // // portion of top-left corner of the Bitmap // BITMAP *anotherAllegroBmp = bmp.GetMemoryBitmap( 0, 0, 20, 10 ); Other functions of the class Bitmap
Questions about GetMemoryBitmap? Click here. |