mobilepickphoto and retina

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

mobilepickphoto and retina

Post by teacherguy » Fri Nov 11, 2016 3:40 am

So I'm using mobilepickphoto and my stack is at the size of the iPhone 6 (375x667). How do I import the photo so it is taking advantage of the retina (2x) resolution?

Should I have created the stack dimensions twice as large to begin with?

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 135
Joined: Mon Jul 31, 2006 1:39 am
Location: New Zealand, Australia, Germany, Japan
Contact:

Re: mobilepickphoto and retina

Post by strongbow » Fri Nov 11, 2016 6:30 am

Using mobilePickPhoto, you can (for iOS) specify the max dimension of the target image that you'll end up getting and that can be independent of your stack size. Of course you'll be constrained by the actual camera, but there's no reason to restrict yourself to the stack or card size.

If you find that your images are too small then try setting the dimensions of the templateImage before you get the picture. From the Dictionary:
Note: The image object is cloned from the templateImage, so you can use this to configure settings before calling the picker.
HTH

Post Reply

Return to “iOS Deployment”