Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Start the load and decode of an image.
will be canceled for you in this case.
ImageLib does NOT keep a strong ref to the observer; this prevents reference cycles. This means that callers of loadImageWithChannel should make sure to Cancel() the resulting request before the observer goes away.
the channel to load the image from. This must already be opened before this method is called, and there must have been no OnDataAvailable calls for it yet.
the observer (may be null)
loading document
[out] A listener that you must send the channel's notifications and data to. Can be null, in which case imagelib has found a cached image and is not interested in the data.
Start the load and decode of an image.
the URI to load
the referrer info to compute sending referrer.
the principal of the loading document
Loadgroup to put the image load into
the observer (may be null)
loading document
Load flags for the request
[optional] the nsContentPolicyType to use for this load. Defaults to nsIContentPolicy::TYPE_IMAGE ImageLib does NOT keep a strong ref to the observer; this prevents reference cycles. This means that callers of loadImage should make sure to Cancel() the resulting request before the observer goes away.
Generated using TypeDoc
imgILoader interface
Author
Stuart Parmenter pavlov@netscape.com
Version
0.3
See
imagelib2