Boost logo

Boost :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2007-05-11 20:39:25


Hello,

I have the need to load a PNG from a generic input stream that has a similar
interface (i.e. has a read, operator ! and fail with the same
signature/semantics as std::istream). The png reading extensions don't
appear to be able to load from anything other than a FILE*. In a library as
modern as GIL I'm sort of suprised there is apparently no way to load from a
generic stream.

Anyone have an idea how to make this happen? Perhaps there is another PNG
library written in C++ or a wrapper around the C libpng?

Thanks,

Michael Marcin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk