Introducing a new cross-platform module that adds support for some more image formats (loading and saving).
Loading of : GIF, BMP, DDS, HDR, ICO, IFF, JNG, JPG, KOALA, LBM, Kodak, MNG, PCS, PBM, PGM, PNG, PPM, Photoshop (PSD), Fax G3, SGI, RAS, TARGA, TIFF, WBMP, XBM and XPM.
Saving of : BMP, GIF, HDR, ICO, JPEG, PBM, PGM, PNG, PPM, TARGA, TIFF, WBMP and XPM.
Uses the open source FreeImage library.
Requires my "modified" BMK to build the module (due to compile/linking flags that the standard BMK doesn't support). Link to the zip is on my site.
For Windows, there's a freeimage.dll included, which you can ship with your app. I would have preferred to build the library statically, but I couldn't get it to work with MinGW.
For Linux and Mac, the library compiles into the module, so there are no external files required with deployment.
You can use the standard LoadPixmap if you only require load support. Just import the module and BlitzMax will pick the best loader for the image.
Loading and Saving have Stream support, so in theory you can even load/save in memory - something I haven't tried, but a RAMStream might work....
The module is available from http://brucey.net/programming/blitz/#bahfreeimage
Tested on Linux, Windows and Mac PPC (should work fine on Mac X86).
Any problems, comments, suggestions.... ;-)
Loading of : GIF, BMP, DDS, HDR, ICO, IFF, JNG, JPG, KOALA, LBM, Kodak, MNG, PCS, PBM, PGM, PNG, PPM, Photoshop (PSD), Fax G3, SGI, RAS, TARGA, TIFF, WBMP, XBM and XPM.
Saving of : BMP, GIF, HDR, ICO, JPEG, PBM, PGM, PNG, PPM, TARGA, TIFF, WBMP and XPM.
Uses the open source FreeImage library.
Requires my "modified" BMK to build the module (due to compile/linking flags that the standard BMK doesn't support). Link to the zip is on my site.
For Windows, there's a freeimage.dll included, which you can ship with your app. I would have preferred to build the library statically, but I couldn't get it to work with MinGW.
For Linux and Mac, the library compiles into the module, so there are no external files required with deployment.
You can use the standard LoadPixmap if you only require load support. Just import the module and BlitzMax will pick the best loader for the image.
Loading and Saving have Stream support, so in theory you can even load/save in memory - something I haven't tried, but a RAMStream might work....
The module is available from http://brucey.net/programming/blitz/#bahfreeimage
Tested on Linux, Windows and Mac PPC (should work fine on Mac X86).
Any problems, comments, suggestions.... ;-)