Can't access a cropped image?
Posted: Thu Apr 19, 2012 9:00 am
I need to crop camera pictures to go into square image fields in a screen full of square buttons. There is no room to put the boundary rectangles on the final screen, so I have to be able to crop the image on one card, then move the result to an image field on another card.
In playing around with the crop command, I made a simple stack with two image fields and one button. The button code looks like this:
on mouseUp
iPhonePickPhoto camera, 400, 300
put last image into image "initialPic"
delete last image
crop image "initialPic" to the rect of graphic "Boundary"
put image "initialPic" into image "finalPic"
end mouseUp
When I run this on an iPad, the cropped image appears in the 'initialPic" field exactly as expected, but the "finalPic" field remains empty. So it seems that a cropped image loses its identity somehow and can't be addressed.
Can anyone shed some light on this?
TIA
Don
In playing around with the crop command, I made a simple stack with two image fields and one button. The button code looks like this:
on mouseUp
iPhonePickPhoto camera, 400, 300
put last image into image "initialPic"
delete last image
crop image "initialPic" to the rect of graphic "Boundary"
put image "initialPic" into image "finalPic"
end mouseUp
When I run this on an iPad, the cropped image appears in the 'initialPic" field exactly as expected, but the "finalPic" field remains empty. So it seems that a cropped image loses its identity somehow and can't be addressed.
Can anyone shed some light on this?
TIA
Don