1

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
VC.One
  • 14,790
  • 4
  • 25
  • 57
Denis
  • 87
  • 1
  • 1
  • 6
  • Which one of these 3 steps are you struggling with? There are tutorials via web search for loading/saving images with AS3, for watermark make a new `sprite` then `addChild` the image first (so it's put on bottom layer) then next `addChild` the watermark (it will now be on top of image). To control watermark's x/y pos use for example `mySprite.myWatermark.x = 50` etc... – VC.One Nov 23 '16 at 07:51

1 Answers1

1
  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.
Michael Antipin
  • 3,522
  • 17
  • 32