| 123456789101112131415161718192021222324 |
- package com.imt.intimamedia.helpers
- {
- import cmodule.as3_jpeg_wrapper.CLibInit;
- import com.imt.intimamedia.helpers.As3JpegWrapper;
- import flash.utils.ByteArray;
- import mx.controls.Alert;
-
- public class As3JpegWrapper
- {
- protected static const as3JpegLoader : cmodule.as3_jpeg_wrapper.CLibInit = new cmodule.as3_jpeg_wrapper.CLibInit();
- protected static const alchemyJepgEncoder : * = as3JpegLoader.init();
-
- public function As3JpegWrapper()
- {
- }
- public static function AlchemyJpegEncode( img : ByteArray, width : int, height : int ) : ByteArray
- {
- var alchemyAcquireImg: ByteArray = alchemyJepgEncoder.write_jpeg_file(img, width, height, 3, 2, 100);
- return alchemyAcquireImg;
- }
- }
- }
|