Save Bitmap (.BMP)
BlitzMax Forums/BlitzMax Beginners Area/Save Bitmap (.BMP)
| ||
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? |
| ||
There's not built in support, but you can use this module by Brucey: http://www.brucey.net/programming/blitz/#bahfreeimage |
| ||
Cheers Perturbatio (and of course brucey for creating it in the first place :)) |
| ||
Filax posted some code a while back |
| ||
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... |
| ||
That's mentioned in the link : You should use LockImage(image) to get the pixmap these days. Anyway, does this do it : |
| ||
That does indeed, do it. Many thanks, TonyG :) |