Matthew Gertner wrote:

- Isn't there a way to load an image from a file directly and get an
nsIImage interface?

Not other than imgILoader::loadImage. Note that this does give you an nsIImage; you can call getInterface on the gfxImageFrame to get it.


It seems like the approach outlined above is
designed for asynchronous loading of images over the wire

That's correct. "wire" also includes local file access, of course (consider NFS, SMB, AFS, etc).


and also has extra baggage because of the need to handle multiple frames (I 
guess
for video).

Or animated gifs.

I don't really know the answers to the rest of your questions, offhand...

-Boris
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to