I’m using png++, which is working ok, but you need to set the pixel type as a template parameter:
png::image< png::rgb_pixel > image("input.png");
The problem is I don’t know at compile time whether it is rgb, rgba etc. Can’t seem to find a way to get png++ to tell me what info is actually in the png.
Any ideas?
Thanks.
Try using a reader. Then check out the member functions of it’s base class, io_base. I think it has what you’re looking for.