A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Resize, crop and rotate image

  1. #1
    Junior Member
    Join Date
    Apr 2007

    Arrow Resize, crop and rotate image

    I'm doing a mini app in AS2 where the user can upload an image into Flash and be able to crop, scale, and rotate and image, and after they're done, save the edited image to the server.

    How would I do this?

    I know I have to load an image into the BitmapData, after that I'm lost.

  2. #2
    http://pat.theorigin.net cresquin's Avatar
    Join Date
    Jun 2003
    Los Angeles, CA
    This is actually a very complex question. Have you thought about how you might accomplish this task? For instance:

    How would you createa a movieclip on stage that tracked both the top left corner (x, y) and the length/width of the desired capture area?

  3. #3
    Junior Member
    Join Date
    Jul 2013
    How about implementing an image rotating plugin within the flash creating application so that you can rotate the image to any angle within 360 degress? I have integrated an image rotator within my document processing library, not complex.

  4. #4
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

  5. #5
    Senior Member
    Join Date
    Nov 2001
    It looks like there's a function for this in AS3. When I look for AS2 code, it gets funky so it's probably a pain in AS2.


  6. #6

  7. #7
    Junior Member
    Join Date
    Mar 2014
    The BitmapData can be attached to a movie clip then use the _xscale _yscale on the mc.
    To crop use copyPixels on the BitmapData.
    To rotate use _rotation on the mc or attach a flash.geom.Matrix() on the mc and use rotate() on the matrix.

    The AS2 offline reference is here, at point 1:

  8. #8
    Junior Member
    Join Date
    Jun 2013
    I wonder whether I can resize images with the help of some 3rd party toolkits?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center