LodePNG is a PNG image decoder and encoder, all in one, no dependency or linkage to zlib or libpng required. It's made for C (ISO C90), and has a C++ wrapper with a more convenient interface on top. On GitHub See lodepng.h for documentation.
|
There is also picoPNG, which is only the decoder part of LodePNG, wrapped in one single C++ function of around 500 lines. This is less well maintained than LodePNG, has less features, and may be less efficient.
The function, decodePNG, converts any PNG file data, with any colortype or interlace mode, into a 32-bit image in an std::vector at the output. picopng.cpp |
|
|