hi Ben,
from the ANDROID Release Notes on "MobilePickPhoto":
...
Note:
The image object is cloned from the templateImage, so you can use this to configure settings before calling the picker.
...
"the templateimage" is exactly what it says, it is the "virtual" template from that newly created images are derived.
So if you set the widht/height and NAME! of the template image first, your script will work.
AND "the result" will coantain an error or "Cancel", too, if the user cancelled or there was any error,
but "thre result" will be empty on success!
So try this:
Code: Select all
on mouseUp
set the name of the templateimage to "The_Image"
set the width of the templateimage to 200
set the height of the templateimage to 200
# Now this will produce a new image named "The_Image" in 200*200 pixels on the current card!
mobilePickPhoto "camera"
## Now check for errors!
if the result<> EMPTY then
put the result into field "The_Result"
end if
## Always a good idea to RESET your modified TEMPLATRE stuff!
reset the templateimage
end mouseUp
And welcome to the forum
Best
Klaus