DeleteBitmap

Bitmaps
Aptilis 1

DeleteBitmap(BitmapHandle)

DeleteBitmap removes a previously created bitmap from memory. Bitmaps can be voracious in terms of RAM resources, and freeing some RAM will help other programmes and your own go faster.
A bitmap eats 1 byte per pixel (that's 64Kb for a 320 * 200 bitmap) plus 768 bytes for the palette.
Freeing bitmaps is always a good idea when you're done with them!
Remaining bitmpas are freed automatically when your Aptilis program finishes.

Return Value:
0, or -1 if the handle was incorrect.

For more details see the Bitmap topic.