public static function encode(img:BitmapData, type:uint = 0):ByteArray
Parameters
img:BitmapData
type:uint
0
ByteArray