iOS Imported Photos

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
chelling
Posts: 100
Joined: Tue Mar 06, 2007 3:14 am

iOS Imported Photos

Post by chelling » Mon Apr 25, 2016 1:36 am

I am working on an iOS project that lets the user import a custom photo from the camera or library. I can manage the import and naming the image. I know that the photos will have to be saved to documents. The imported images will be used on several cards and with different sizes. I have several questions that I can’t find answers.
1. Do I import the photo on each card, and resize dynamically on preOpenCard?
2. Will the imported photo be a reference to the saved photo?
3. Should I delete the photo from each card when going to a different card?

Thanks in advance for your help.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: iOS Imported Photos

Post by Dixie » Mon Apr 25, 2016 7:19 am

Yes, No, Yes...:-)

Casey Morgan
Posts: 9
Joined: Sat Jan 24, 2015 5:30 pm

Re: iOS Imported Photos

Post by Casey Morgan » Mon Apr 25, 2016 5:03 pm

Hi Dixie, how would that work if the original photo is the one that gets imported? I am guessing a copy of the photo would have to be saved somewhere. Would this be a case for using a substack?

chelling
Posts: 100
Joined: Tue Mar 06, 2007 3:14 am

Re: iOS Imported Photos

Post by chelling » Mon Apr 25, 2016 5:36 pm

I am having a hard time with this. I am thinking about importing a copy to a card and then referencing to that instead of the original. If the photo is resized, will it degrade over time? If I don't save the new size and lock the new size (keep the original dimensions), it should be OK, right?

Post Reply