GMFI: FreeImage Wrapper beta
By Adventus
Just thought this might be useful for those image editting programs i see popping up now and again. This dll wraps 60 odd functions from the awesome opensource FreeImage DLL.... ill probably add more if they're required (who wants meta-data functions?). I havent (yet) managed to statically link the freeimage.dll with my MinGW compiler so you'll have to distribute both the "gmfi.dll" and the "FreeImage.dll" (in the same directory) with your games. Aswell as the large number of supported formats, there's also an equivalent function for almost every operation in the GM paint program. Due to the huge number of function combinations and my over-riding laziness, i havent tested everything.... so give it ago and tell me if you can get it to screw up.
Download Info:
Files in zip: gmfi.gmd, gmfi.dll and FreeImage.dll
Helpfile: FreeImage Helpfile - You'll need it!

Supported Image Formats:
- BMP files [reading, writing]
- DDS files [reading]
- Dr. Halo files [reading]
- GIF files [reading, writing]
- HDR files [reading, writing]
- ICO files [reading, writing]
- IFF files [reading]
- JBIG [reading, writing]
- JNG files [reading]
- JPEG/JIF files [reading, writing]
- KOALA files [reading]
- LBM files [reading]
- Kodak PhotoCD files [reading]
- MNG files [reading]
- PCX files [reading]
- PBM files [reading, writing]
- PGM files [reading, writing]
- PNG files [reading, writing]
- PPM files [reading, writing]
- PhotoShop files [reading]
- Raw Fax G3 files [reading]
- SGI files [reading]
- Sun RAS files [reading]
- TARGA files [reading, writing]
- TIFF files [reading, writing]
- WBMP files [reading, writing]
- XBM files [reading]
- XPM files [reading, writing]
Upcoming Features:
-
- Command Interpreter: Allow you to write simple pixel manipulation functions withoutgoing through GM.
- Static Linking: I'll be able to halve the size of the dll by ripping out the meta data functions, and it'll mean you only need to distribute one dll.
Version Log:
+ v0.02:
- Added save/load flags. Check gmfi_flags() script to find what flags to use for a format.
- Added Tonemapping functions. You can now successfully covert HDR files to standard RGB format.
Edited by Adventus, 16 June 2007 - 08:57 AM.












