actionscript 3, add a watermark to image and save

108 views Asked by At

my task -

  1. Open a picture from computer
  2. Add the watermark in the corner
  3. Ask a request to download edited image back to computer

how is it possible?

  • general image - jpg.
  • watermark- it does not matter. Use all what you want
1

There are 1 answers

0
Michael Antipin On
  1. Opening and saving files: FileReference class. See FileReference.browse() and FileReference.save(). Note: you can only open or save files upon user interaction (i.e. user presses a button, you open the OS browse dialog).
  2. The bitmap you load is represented by BitmapData class. When you have a picture and a watermark image, you can draw the latter on the former using BitmapData.draw().
  3. Use FileReference.save() as pointed out in 1.