I use this code to pull an image from the iPhone. The code is in an image object of a card. The problem is that if the image chosen is not square then it appears distorted in the image object. Is there a way to have the chosen image scaled only along its longest axis? Or do I not want to use an image object in this situation?
Code: Select all
on mouseUp
lock screen
## Image size is 240,240
answer "Where is the photo coming from?" with "Camera" or "Library" or "Album" or "Cancel"
put it into tMethod
switch tMethod
case "Library"
mobilePickPhoto "library"
if the result is "Cancel" then exit mouseUp
set the text of me to the text of the last image of this card
delete the last image of this card
set the uPhotoChanged of this cd to true
break
case "Album"
mobilePickPhoto "Album"
if the result is "Cancel" then exit mouseUp
set the text of me to the text of the last image of this card
delete the last image of this card
set the uPhotoChanged of this cd to true
break
case "Camera"
mobilePickPhoto "Camera", 240,240
if the result is "Cancel" then exit mouseUp
set the text of me to the text of the last image of this card
delete the last image of this card
set the uPhotoChanged of this cd to true
break
end switch
end mouseUp