the subject sounds trivial, but I was a little bit puzzled to realise this.
Actually I was doing this:
PNGImageFormat jPNGReader; jassert(jPNGReader.canUnderstand(jDataStream)) Image jPic = jPNGReader.decodeImage(jDataStream);
The decoding failed because canUnderstand advanced the strem. I didn’t expect this. Would it be convenient to have a bool parameter to tell canUnderstand() to rewind the stream to where it was before the check? Or are the ImageFileFormat classes not be meant to be used this way?