I’d like to do this in a platform independant way, and I know libpng is a possibility, but I find it hard to figure out how. Does anyone know how to do this in a simple way?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a C++ wrapper for
libpngcalledPng++. Check it here or just google it.They have a real C++ interface with templates and such that uses
libpngunder the hood. I’ve found the code I have written quite expressive and high-level.Example of “generator” which is the heart of the algorithm:
And usage is like this:
There were some bits still missing from
libpng(interleaving options and such), but frankly I did not use them so it was okay for me.