WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
Images
These interfaces are for loading and uncompressing various image formats. You can use the imgILoader interface to load images.
Jump to:
Interfaces
The following image related interfaces are available.
gfxIFormatsgfxIImageFrame
imgICache
imgIContainer
imgIContainerObserver
imgIDecoder
imgIDecoderObserver
imgIEncoder
imgILoad
imgILoader
imgIRequest
imgITools
nsIMozIconURI
Image Components
The following image components are available, which implement the corresponding interface above that is similar in name. There are special containers for animated images.
@mozilla.org/gfx/image/frame;2@mozilla.org/gfx/image;1
@mozilla.org/image/cache;1
@mozilla.org/image/container;1
@mozilla.org/image/container;1?type=image/gif
@mozilla.org/image/container;1?type=image/x-mng
@mozilla.org/image/loader;1
@mozilla.org/image/request;1
@mozilla.org/image/tools;1
@mozilla.org/imgmanager;1
Image Decoders and Encoders
These components are used to decode and encode images of various formats.
@mozilla.org/image/decoder;2?type=image/bmp@mozilla.org/image/decoder;2?type=image/gif
@mozilla.org/image/decoder;2?type=image/icon
@mozilla.org/image/decoder;2?type=image/inspector-bitmap
@mozilla.org/image/decoder;2?type=image/jpeg
@mozilla.org/image/decoder;2?type=image/jpg
@mozilla.org/image/decoder;2?type=image/pjpeg
@mozilla.org/image/decoder;2?type=image/png
@mozilla.org/image/decoder;2?type=image/vnd.microsoft.icon
@mozilla.org/image/decoder;2?type=image/x-icon
@mozilla.org/image/decoder;2?type=image/x-jng
@mozilla.org/image/decoder;2?type=image/x-png
@mozilla.org/image/decoder;2?type=image/x-portable-bitmap
@mozilla.org/image/decoder;2?type=image/x-portable-graymap
@mozilla.org/image/decoder;2?type=image/x-portable-pixmap
@mozilla.org/image/decoder;2?type=image/x-xbitmap
@mozilla.org/image/decoder;2?type=image/x-xbm
@mozilla.org/image/decoder;2?type=image/xbm
@mozilla.org/image/decoder;2?type=video/x-mng
@mozilla.org/image/encoder;2?type=image/jpeg
@mozilla.org/image/encoder;2?type=image/png
Reference documentation is generated from Mozilla's source.
