-
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.
-
http://pat.theorigin.net
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?
-
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.
-
Designer, Programmer, Musician
Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries
-
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.
http://www.cultcreative.com/tutorial...-a-php-server/
-
.
-
Hi,
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:
http://help.adobe.com/en_US/as2/refe...3af7-8000.html
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|