Page 1 of 1

mobilePickPhoto and the resulting image

Posted: Thu Mar 01, 2012 4:13 pm
by jbmiller
I'm still a bit of a novice with LiveCode and I'm working on getting an image for later use. I am able to get the photo I want and I know that mobilePickPhoto creates an image on the current card. I've got that so far.

But I don't want the image to just hang around centered on the screen of my phone.
First, I want to be able to display the image in a specific spot on the screen. I tried setting the imageTemplate location, height, and width but it just seems to go to the top left corner and cuts off part of the image. I've assigned the location, height and width to the resulting image and seem to get the same results. If I set the top, left then I'm not seeing any image at all.

Second, I would like to take the image full-sized or at least a larger size but then scale to the display I'm using. So after getting the photo, I'm setting the height and width of the image and it seems to take a long time to resize the image. I'm testing this on a iPhone 4 and I've read the release notes. My problem is just manipulating the image once I've got it.

Thanks,
Bill

Re: mobilePickPhoto and the resulting image

Posted: Fri Mar 02, 2012 2:06 am
by Jellicle
jbmiller wrote: But I don't want the image to just hang around centered on the screen of my phone.
First, I want to be able to display the image in a specific spot on the screen.
Simply setting the loc of the image should work eg.

Code: Select all

set the loc of image "theNewImage" to 320,480
Can you show us the code you are using?

Gerry