Taking advantage of the orientation of the device
Posted: Tue Dec 10, 2013 2:36 pm
Hi all,
I'm trying to adapt an image to take advantage of the new orientation of the device. This code works fine, but in portrait mode it crops the image at the left and right side. Any suggestion to improve it?
I'm trying to adapt an image to take advantage of the new orientation of the device. This code works fine, but in portrait mode it crops the image at the left and right side. Any suggestion to improve it?

Code: Select all
on adaptImage
set the width of image myImage to the width of this card
put (formattedWidth of image myImage/the width of image myImage) into myFactor
set the height of image myImage to (the the formattedHeight of image myImage/myFactor)
set the loc of image myImage to the loc of this card
end adaptImage