Packagesekati.formats
Classpublic class PNGEncoder

PNGEncoder provides conversion from Bitmap to valid PNG file format.


Example
  var pngData : ByteArray = PNGEncoder.encode( bitmapDataObj );
  

See also

http://en.wikipedia.org/wiki/Portable_Network_Graphics


Public Methods
 MethodDefined by
  
PNGEncoder Static Constructor
PNGEncoder
  
encode(img:BitmapData):ByteArray
[static] Created a PNG image from the specified BitmapData
PNGEncoder
Constructor detail
PNGEncoder()constructor
public function PNGEncoder()

PNGEncoder Static Constructor

Method detail
encode()method
public static function encode(img:BitmapData):ByteArray

Created a PNG image from the specified BitmapData

Parameters
img:BitmapData — the BitmapData that will be converted into the PNG format.

Returns
ByteArrayByteArray representing the PNG encoded image data.