Function libcacaoimage::decode::DecodePNG

Function Documentation

Image libcacaoimage::decode::DecodePNG(std::istream &input)

Decode a PNG image.

If you know your image is PNG, this avoids the overhead of format determination

Parameters:

input – An input stream to the encoded data

Throws:

std::runtime_error – If the data is not in PNG format or if decoding fails

Returns:

The decoded image data