• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

CC 2018, Air php/jpeg encoding?

Explorer ,
Apr 06, 2018 Apr 06, 2018

Copy link to clipboard

Copied

Hello everyone!

I am building a small project where i can make a snapshot and send it to my server using php communication.

I am pretty much done with everything that belongs to php and Actionscript 3.0 on my app.

But i do have problem, i have looked for an example of how to encode my bitmapData into PNG or JPG, non of those examples seems to be working becasue flash could not find those libraries when i compiling..

wich are:

com.adobe.images.PNGEncoder;

com.adobe.images.JPEGEncoder;

are those libraries not supposed to be in flash CC 2018? or do i need to download it from somewhere?

TOPICS
Development

Views

370

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Apr 06, 2018 Apr 06, 2018

Look at BitmapData.encode() method

you will be able to chose a compressor for either PNG, JPG or JPGX
you will have to use min AIR 3.3 / Flash 11.3

Votes

Translate

Translate
Enthusiast ,
Apr 06, 2018 Apr 06, 2018

Copy link to clipboard

Copied

Look at BitmapData.encode() method

you will be able to chose a compressor for either PNG, JPG or JPGX
you will have to use min AIR 3.3 / Flash 11.3

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 06, 2018 Apr 06, 2018

Copy link to clipboard

Copied

LATEST

For your interest, there were old encoder classes, that may be what you found as example code. The newer encoder is a lot faster.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines