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.

@mozilla.org/image/container;1?type=image/gif

This component implements the following interfaces:

Constants

"Disposal" method indicates how the image should be handled before the subsequent image is displayed. Don't change these without looking at the implementations using them, struct gif_struct::disposal_method and gif_write() in particular.
PRInt32 imgIContainer.kDisposeClearAll = -1
PRInt32 imgIContainer.kDisposeNotSpecified = 0
PRInt32 imgIContainer.kDisposeKeep = 1
PRInt32 imgIContainer.kDisposeClear = 2
PRInt32 imgIContainer.kDisposeRestorePrevious = 3
PRInt32 imgIContainer.kBlendSource = 0
PRInt32 imgIContainer.kBlendOver = 1
Animation mode Constants 0 = normal 1 = don't animate 2 = loop once
PRInt16 imgIContainer.kNormalAnimMode = 0
PRInt16 imgIContainer.kDontAnimMode = 1
PRInt16 imgIContainer.kLoopOnceAnimMode = 2

Properties

PRUint16 imgIContainer.animationMode

readonly gfxIImageFrame imgIContainer.currentFrame

Get the current frame that would be drawn if the image was to be drawn now

readonly PRInt32 imgIContainer.height

The height of the container rectangle.

PRInt32 imgIContainer.loopCount

Number of times to loop the image.

readonly PRUint32 imgIContainer.numFrames

readonly gfx_format imgIContainer.preferredAlphaChannelFormat

readonly PRInt32 imgIContainer.width

The width of the container rectangle.

Methods

InterfaceMethod
imgIContainer [noscript] void addRestoreData ( arrayof char data , PRUint32 count )
imgIContainer void appendFrame ( gfxIImageFrame item )
imgIContainer void clear ( )
imgIContainer void decodingComplete ( )
imgIContainer void endFrameDecode ( PRUint32 framenumber , PRUint32 timeout )
imgIContainer gfxIImageFrame getFrameAt ( PRUint32 index )
imgIContainer void init ( PRInt32 width , PRInt32 height , imgIContainerObserver observer )
nsITimerCallback void notify ( nsITimer timer )
imgIContainer void removeFrame ( gfxIImageFrame item )
imgIContainer void resetAnimation ( )
imgIContainer [noscript] void restoreDataDone ( )
imgIContainer [noscript] void setDiscardable ( char* mimeType )
imgIContainer void startAnimation ( )
imgIContainer void stopAnimation ( )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com