| Package | mx.graphics.codec |
| Class | public class PNGEncoder |
| Inheritance | PNGEncoder Object |
| Implements | IImageEncoder |
| Property | Defined By | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| contentType : String
[read-only]
The MIME type for the PNG encoded image.
| PNGEncoder | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| Method | Defined By | ||
|---|---|---|---|
| PNGEncoder | |||
|
Converts the pixels of raw BitmapData to a PNG encoded ByteArray.
| PNGEncoder | ||
|
Converts the ByteArray of pixels from a raw bitmap to a PNG encoded
ByteArray.
| PNGEncoder | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| Constant | Defined By | ||
|---|---|---|---|
| CONTENT_TYPE : String = "image/png" [static]
| PNGEncoder | ||
| contentType | property |
contentType:String [read-only] The MIME type for the PNG encoded image.
public function get contentType():String
| PNGEncoder | () | Constructor |
public function PNGEncoder()
| encode | () | method |
public function encode(image:BitmapData):ByteArray
Converts the pixels of raw BitmapData to a PNG encoded ByteArray.
Parameters
image:BitmapData |
ByteArray |
| encodeByteArray | () | method |
public function encodeByteArray(raw:ByteArray, width:int, height:int, transparent:Boolean = true):ByteArray
Converts the ByteArray of pixels from a raw bitmap to a PNG encoded ByteArray. If transparent is set to false, 4 bytes must still be sent per pixel for ARGB, however, the alpha channel information will be ignored.
Parameters
raw:ByteArray |
|
width:int |
|
height:int |
|
transparent:Boolean (default = true) |
ByteArray |
| CONTENT_TYPE | Constant |
public static const CONTENT_TYPE:String = "image/png"
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/PNGEncoder.html