This interface is the base class for decoders for specific image formats.
Closes the stream.
Flushes the stream.
Initializes an image decoder.
void init( in imgILoad aLoad );
imgILoadobject to receive the decoded image data. This object also implements the
imgIDecoderObserverinterface; you should
QueryInterface()it to that interface and call its notification methods while handling the decode operation. You should always pass null as the first two parameters of the notification APIs.
Writes data into the stream from an input stream.
char *buffer would need to be used in order to call the output stream's other
unsigned long writeFrom( in nsIInputStream inStr, in unsigned long count );
- The stream from which to read the encoded image data.
- The maximum number of bytes to write to the image.
The number of bytes actually written to the image, or
undefined if an error occurred.