我需要导入哪个包才能在Flash中使用JPGEncoder? [英] Which package do I need to import to use JPGEncoder in flash?
本文介绍了我需要导入哪个包才能在Flash中使用JPGEncoder?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);
以上是报告错误:
The above is reporting error:
Type was not found or was not a compile-time constant: JPGEncoder.
Call to a possibly undefined method JPGEncoder.
推荐答案
com.adobe.images.JPGEncoder; ?
如果是这样,这是来自 ActionScript 3核心库。
If so,This is from the core classes in ActionScript 3 Core Library.
编辑:我唯一知道的可能来自预先包装的是
Edit : The only other I know of that may come prepackaged is
mx.graphics.codec.JPEGEncoder
不知道如何匹配直到as3core库
Not sure how it matches up to the as3core library
这篇关于我需要导入哪个包才能在Flash中使用JPGEncoder?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文