Capture Specified Area of Screen

Hi all

I'm trying to figure out how to crop the image returned after capturing an image via the camera.... The aim being that after taking a picture with the camera, the user will drag and scale the image captured within a border on screen... and then on pressing continue I will recapture just the part of the image within the border.

Any ideas guys??? Is there a way to capture a specific screen area?

Cheers
R

Put what you want to be saved in a group, and pass it as the first argument to display.save().

Or, you can save the entire screen (save the entire group), and apply a mask that only shows half of the screen (you'd create a bitmap image that's black and white, with the white parts being the area you want stuff to show).

Thanks for the reply Jonathan...
Yeah, I toyed with the mask option.. but doesnt do what I'm after.... Nor does the display.save.

I am trying to crop a subsection of a full screen capture... and save just that selection to a new image.

So I need to find a way to act as if I was able to do something like

display.capture (40,40,280,40,280,240,40,240)....

where the params are the coordinates of the selection are to be captured.

Any thoughts
R

views:1665 update:2011/10/22 9:46:13
corona forums © 2003-2011