| Package | mx.graphics.codec |
| Interface | public interface IImageEncoder |
| Implementors | JPEGEncoder, PNGEncoder |
See also
| Property | Defined By | ||
|---|---|---|---|
| contentType : String
[read-only]
The MIME type for the encoded image format.
| IImageEncoder | ||
| Method | Defined By | ||
|---|---|---|---|
|
Encodes a raw BitmapData as a ByteArray.
| IImageEncoder | ||
|
Encodes a raw bitmap ByteArray as a new ByteArray.
| IImageEncoder | ||
| contentType | property |
contentType:String [read-only] The MIME type for the encoded image format.
public function get contentType():String
| encode | () | method |
public function encode(image:BitmapData):ByteArray
Encodes a raw BitmapData as a ByteArray.
Parameters
image:BitmapData |
ByteArray |
| encodeByteArray | () | method |
public function encodeByteArray(raw:ByteArray, width:int, height:int, transparent:Boolean = true):ByteArray
Encodes a raw bitmap ByteArray as a new ByteArray. The ByteArray must be written using 4 bytes per pixel as ARGB, however, if the transparent flag is set to false the alpha channel information will be ignored.
Parameters
raw:ByteArray |
|
width:int |
|
height:int |
|
transparent:Boolean (default = true) |
ByteArray |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/graphics/codec/IImageEncoder.html