| Method | Defined By | ||
|---|---|---|---|
encode(image:BitmapData, transparent:Boolean = false):ByteArray [static]
Allows you to encode a BitmapData to a PNG stream for AlivePDF. | PNGEncoder | ||
| encode | () | method |
public static function encode(image:BitmapData, transparent:Boolean = false):ByteArrayAllows you to encode a BitmapData to a PNG stream for AlivePDF.
Parameters
image:BitmapData — The BitmapData to encode
| |
transparent:Boolean (default = false) — Specify if the PNG is transparent or not. The value of this parameter is false by default.
|
ByteArray —
|