Log in

View Full Version : Image Library Recommendations?


Scorpio
07-16-2003, 10:25 PM
Our current game project is in 800x600 and we are looking to add .jpg and .png support to our engine in order to reduce the download size.

The only functionality we really need is the ability to load and decompress jpg and png data from a file or from memory (we store all our game resources within the game's EXE...so we don't have any external files).

Requirements include:

+ Must be usable with C/C++
+ Must be able to use data already in memory (ie, not just work on files)
+ Must be reasonably priced (for us, that means a few hundred bucks or less)
+ Must support linking with a static lib (ie, must *not* require using an external dll file)
+ Must support at least jpg and png
+ Resizing functionality would be a nice bonus

Thanks for any info! :)
-Scorpio

Cornel
07-16-2003, 10:50 PM
LibPGN and LibJpeg both are free and link statically, no extra dll's

http://www.ijg.org/files/

http://www.libpng.org

Dan MacDonald
07-17-2003, 01:25 AM
LibPNG is nice, I played around with it a little for some test projects. They include nice MSVC project files so its really easy to build :)

Lerc
07-17-2003, 07:38 PM
Originally posted by Dan MacDonald
LibPNG is nice, I played around with it a little for some test projects. They include nice MSVC project files so its really easy to build :)
LibMNG (http://www.libmng.com/) is probably worth a look too. I think this does JNG too which gets you Jpeg with alpha.

Fariz
07-17-2003, 10:48 PM
AFAIK png uses same compression algo as winzip do, so using it on your picture does not make your destributives smaller.

If your concern is demo download size, you shall use .jpg

You may want to check here http://www.wotsit.org/ JPG is perfectly explained, and one of links has working code (though code it is messy indeed).

patrox
07-19-2003, 06:58 AM
Windows handles , bmp, gif, JPG and WMF , if you use the OLEPicture interface.

IPicture::Render

No need of a library.

pat.

Guardian_Light
07-19-2003, 07:19 AM
If you are using VS 7 or above, the CImage class supports loading JPG's and PNG's. (It's in the newest MFC version) I've haven't tried it yet, but it looks promising.

Michael Sikora
Guardian Light Studios (http://www.guardianlightstudios.com)

bzztbomb
07-19-2003, 07:12 PM
I've had good success with DevIL. It has many language interfaces and it quick to get up and running. Check it out here: http://openil.sourceforge.net/

Hercule
07-22-2003, 06:13 AM
Devil is wery good but corona seems to be easier to use :

http://corona.sourceforge.net/

Joe
07-22-2003, 11:56 AM
I use corona in one of my screensavers. It works very well and who can argue about the price?

-Joe
www.webappstogo.com