nsISupports
Last changed in Gecko 1.7 This interface is the base class for decoders for specific image formats.
void close(); |
void flush(); |
void init(in imgILoad aLoad); |
unsigned long writeFrom(in nsIInputStream inStr, in unsigned long count); |
Closes the stream.
void close();
None.
Flushes the stream.
void flush();
None.
Initializes an image decoder.
void init( in imgILoad aLoad );
aLoad
imgILoad
object to receive the decoded image data. This object also implements the imgIDecoderObserver
interface; 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 write()
method.unsigned long writeFrom( in nsIInputStream inStr, in unsigned long count );
inStr
count
The number of bytes actually written to the image, or undefined
if an error occurred.