Save Bitmap (.BMP)

BlitzMax Forums/BlitzMax Beginners Area/Save Bitmap (.BMP)

rockford(Posted 2007) [#1]
Looking through the help files, I couldn't see a command that acts like SaveBitmap. Does one exist?

The closest I could find were SavePixMapPNG and SavePixMapJPEG, but there doesn't appear to be saving for bitmap images.

Have i missed it somewhere?


Perturbatio(Posted 2007) [#2]
There's not built in support, but you can use this module by Brucey:
http://www.brucey.net/programming/blitz/#bahfreeimage


rockford(Posted 2007) [#3]
Cheers Perturbatio (and of course brucey for creating it in the first place :))


tonyg(Posted 2007) [#4]
Filax posted some code a while back


rockford(Posted 2007) [#5]
Unfortunately that code no longer works with BMax - the "image.masks[0]" bit causes BMax some kerfuffle.

:(

Thanks anyway, I might be able to salvage something from it though...


tonyg(Posted 2007) [#6]
That's mentioned in the link :
You should use LockImage(image) to get the pixmap these days.

Anyway, does this do it :



rockford(Posted 2007) [#7]
That does indeed, do it.

Many thanks, TonyG :)