SaveGifFile

Bitmaps
Aptilis 1

SaveGifFile(FileName, BitmapHandle)

SaveGifFile saves a bitmap into a file, a bit like SaveFile does for more general purposes.
Of course, you will need to create and draw into a bitmap before you can use its handle to save it.
Once you're done with your bitmap, you can release the memory it's using by calling DeleteBitmap.

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

For more details see the Bitmap topic.