Local image manipulation

First of all, congrats to CoronaLabs on the recent buy-out, I hope you’ll all be thinking about us struggling Indies when you’re driving around in your Lambo’s :slight_smile:

A client has recently approached me, asking for an ‘image crop and scaling’ mechanism… I’ve found a lot of info on the subject, but unfortunately it seems to pre-date the current build. I don’t have the bucks at the moment to buy a license, so I was wondering if there’s a decent resource or tutorial that will show me how to crop / scale / save and /or upload images via Corona SDK.

There’s a video here (but the content may be before Graphics 2):

http://www.youtube.com/watch?v=23qu-b8mmRU

…This would be fantastic for me needs

There’s a GitHub sample too, but it doesn’t seem to do very much.

Pointers much appreciated.

That shouldn’t be too terribly difficult to do.   You need your crop frame which is a fixed size.  Then you can use pinch-zoom to resize the photo (see the Pinchzoom sample app), then you can use touch-drag to position it with in the frame.  Then when it’s time to crop the photo, you would put a mask the same size as the crop frame on the image, put it all into a display group and then capture the display group.

Rob

That shouldn’t be too terribly difficult to do.   You need your crop frame which is a fixed size.  Then you can use pinch-zoom to resize the photo (see the Pinchzoom sample app), then you can use touch-drag to position it with in the frame.  Then when it’s time to crop the photo, you would put a mask the same size as the crop frame on the image, put it all into a display group and then capture the display group.

Rob