Jump to content
  • Advertisement
Sign in to follow this  
Lode

saving to a png image

This topic is 4835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What's a good multiplatform library to save .png images for screenshots? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Hmmmm, I just use libpng. As far as multi-platform I use it on Win32 and Mac OS X without any problems. You can be certain that it works on Linux.

Share this post


Link to post
Share on other sites
Just to post my expirience with loading/saving a png:
I did not want to use ImageMagick, because it is such a big package, and just for loading/saving a png ... it was an option for me but I first wanted to try alternatives.
So I tried DevIL ... worked pretty well. But sometimes (for loading some images) it just did not work. I had no clue why and I was unable to find out. So I tried libpng.
When I first looked at the documentation, it overwhelmed. Why can't they just give a simple function that loads/saves me my png?
But afterall, it was not that bad, I had to read about 10 screens, do some copy and pastes and it worked very nicely!
My recommandation is: lipng

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!