FreeImage for Blitz3d?

Blitz3D Forums/Blitz3D Programming/FreeImage for Blitz3d?

Odds On(Posted 2003) [#1]
Has anyone written/converted the FreeImage library to work with Blitz3d? or does anyone intend to write/convert the FreeImage library to work with it?

I need to be able to save textures to different formats and I'd rather not spend a lot of time writing code to save to these formats myself.


Rob(Posted 2003) [#2]
I think it's in code archives.


John Blackledge(Posted 2003) [#3]
Yeah, I wouldn't mind mind having a 'version' of SaveImage which can save a jpg. But I've looked hrough the code archives and I can't find anything. Anybady?


Binary_Moon(Posted 2003) [#4]
Ta Daaa

http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=snarty09252003024804&comments=no

Thanks go to Snarty


Odds On(Posted 2003) [#5]
I got that userlib already, but I think it'd be just as easy to write custom exporters since it uses LockedPixels() and I'd have to figure out how the image data is stored in the returned bank to get it to work in Blitz3d anyway.


Binary_Moon(Posted 2003) [#6]
Doh - I didn't think of the locked pixels thing. Did you see the thread about the devil lib a while ago?

That could do what you want I think.


Binary_Moon(Posted 2003) [#7]
Here ya go. The demo in this thread converts a png to a jpg but it can't be that hard to get it to save a user created image to a jpg... can it?

http://www.blitzbasic.com/bbs/posts.php?topic=24495


TeraBit(Posted 2003) [#8]
The free image one is nice, but difficult to implement in Blitz3D and so wasn't much use to me. DevIL looked nice, but seemed way to complicated to do simple things.


Odds On(Posted 2003) [#9]
Thanks Binary_Moon, DevIL works perfectly :).. tbh I didn't realise DevIL was an image library, I thought it was just an OpenGL lib :P.