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

This component implements the following interfaces:

Constants

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 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 void startAnimation ( )
imgIContainer void stopAnimation ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com