This is my problem:
1- I have a 1 button app (portrait only) that will allow the user to take a picture
2- once the picture is taken it has to be presented on the device screen using as much real estate as possible
3- using a very simple stack (below) everything works ok if user takes the pictures in Portrait mode as well
4- things become weird if user decides to take the picture in landscape mode with two different situations and results:
4a- user presses the button to take the picture and then rotates the device
4b- user rotates the device and then presses the button to take the picture
Code: Select all
on preOpenStack
set the width of the templateimage to 320
set the height of the templateimage to 480
end preOpenStack
Code: Select all
on mouseUp
set the lockloc of the templateimage to true
mobilePickPhoto "camera"
if the result is "cancel" then
return true
end if
set the top of last img to 100
set the left of last img to 0
end mouseUp
1 - what's the default size of the templateimage? ( I have tried answer the width and height of last picture and get strange results)
2 - is there any way to learn how the picture was taken (portrait of landscape) once control is returned to the App? ( same as above)
3 - is there any way to restrict the user to take pictures in Portrait mode only?
4 - has anyone achieved what I'm trying to achieve and is willing to share?
Many thanks in advance for any kind of help...