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/gfx/image/frame;2

This component implements the following interfaces:

Properties

PRInt32 gfxIImageFrame.blendMethod

readonly gfx_format gfxIImageFrame.format

The image data format the image was created with.

PRInt32 gfxIImageFrame.frameDisposalMethod

readonly PRInt32 gfxIImageFrame.height

The height of the image.

readonly PRUint32 gfxIImageFrame.imageBytesPerRow

readonly PRUint32 gfxIImageFrame.imageDataLength

Returns the number of bytes allocated for the image

PRBool gfxIImageFrame.mutable

TRUE by default. When set to FALSE, you will no longer be able to make any modifications to the data of the image. Any attempts will fail.

readonly PRBool gfxIImageFrame.needsBackground

Returns whether the image requires the background to be painted

PRInt32 gfxIImageFrame.timeout

Represents the number of milliseconds until the next frame should be displayed.

readonly PRInt32 gfxIImageFrame.width

The width of the image.

readonly PRInt32 gfxIImageFrame.x

The x-offset of the image.

readonly PRInt32 gfxIImageFrame.y

The y-offset of the image.

Methods

InterfaceMethod
gfxIImageFrame void getImageData ( out arrayof PRUint8 bits , out PRUint32 length )
nsIInterfaceRequestor void getInterface ( nsIIDRef uuid , out nsQIResult* result )
gfxIImageFrame void getPaletteData ( out gfx_color palette , out PRUint32 length )
gfxIImageFrame [noscript] void getRect ( nsRectRef rect )
gfxIImageFrame void init ( PRInt32 aX , PRInt32 aY , PRInt32 width , PRInt32 height , gfx_format format , gfx_depth depth )
gfxIImageFrame void lockImageData ( )
gfxIImageFrame void unlockImageData ( )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com