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/encoder;2?type=image/png
This component implements the following interfaces:
Constants
| PRUint32 | imgIEncoder.INPUT_FORMAT_RGB | = 0 |
| PRUint32 | imgIEncoder.INPUT_FORMAT_RGBA | = 1 |
| PRUint32 | imgIEncoder.INPUT_FORMAT_HOSTARGB | = 2 |
Methods
| Interface | Method |
|---|---|
| imgIEncoder |
void addImageFrame ( arrayof PRUint8 data , PRUint32 length , PRUint32 width , PRUint32 height , PRUint32 stride , PRUint32 frameFormat , AString frameOptions )
|
| nsIInputStream |
PRUint32 available ( )
|
| nsIInputStream |
void close ( )
|
| imgIEncoder |
void endImageEncode ( )
|
| imgIEncoder |
void initFromData ( arrayof PRUint8 data , PRUint32 length , PRUint32 width , PRUint32 height , PRUint32 stride , PRUint32 inputFormat , AString outputOptions )
|
| nsIInputStream |
PRBool isNonBlocking ( )
|
| nsIInputStream |
[noscript] PRUint32 read ( charPtr* buf , PRUint32 count )
|
| nsIInputStream |
[noscript] PRUint32 readSegments ( nsWriteSegmentFun writer , voidPtr* closure , PRUint32 count )
|
| imgIEncoder |
void startImageEncode ( PRUint32 width , PRUint32 height , PRUint32 inputFormat , AString outputOptions )
|
Reference documentation is generated from Mozilla's source.
