Fast or asynchronous AS3 JPEG encoding

后端 未结 5 1764
野趣味
野趣味 2020-12-18 05:42

I\'m currently using the JPGEncoder from the AS3 core lib to encode a bitmap to JPEG

 var enc:JPGEncoder = new JPGEncoder(90);
 var jpg:ByteArra         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 06:36

    Setting up the encoder to be asynchronous would likely be your best bet.

    Here are two examples from Adobe

    This example is with actionscript/flex, but its the same idea.

提交回复
热议问题