Package | sekati.formats |
Class | public class JPGEncoder |
Bitmap
to valid JPG file format.
var jpg : JPGEncoder = new JPGEncoder( 80 ); var jpgData : ByteArray = jpg.encode( bitmapDataObj );
See also
Method | Defined by | ||
---|---|---|---|
JPGEncoder(quality:Number = 50)
JPGEncoder Constructor
| JPGEncoder | ||
encode(image:BitmapData):ByteArray
Created a JPG image from the specified
BitmapData . | JPGEncoder |
JPGEncoder | () | constructor |
public function JPGEncoder(quality:Number = 50)
JPGEncoder Constructor
Parametersquality:Number (default = 50 ) — The quality level between 1 - 100 that detrmines the level of compression used in the generated JPG
|
encode | () | method |
public function encode(image:BitmapData):ByteArray
Created a JPG image from the specified BitmapData
.
image:BitmapData — The BitmapData that will be converted into the JPG format.
|
ByteArray — a ByteArray representing the JPG encoded image data.
|