Which package do I need to import to use JPGEncoder in flash?

后端 未结 1 1065
-上瘾入骨i
-上瘾入骨i 2021-01-22 00:20
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bmpData);

The above is reporting error:

Typ         


        
相关标签:
1条回答
  • 2021-01-22 00:58

    Are you talking about

    com.adobe.images.JPGEncoder; ?
    

    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
    

    Not sure how it matches up to the as3core library

    0 讨论(0)
提交回复
热议问题