Export an image to another card.

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Export an image to another card.

Post by Kaubs »

Hello,

In my application users will be able to activate the camera from any card using iPhonePickPhoto "rear camera" take a picture and then upload that image to a server. For now the destination is unknown and I will later add a send image button in a card. My question is however...would it be possible to export that image to another card instead of bringing it to the current card? It wouldn't have to be saved to the camera roll but if there is a way to pull it as last pic from camera roll that would be fine as well.

Thanks!
If you have any questions please ask!!!!
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Export an image to another card.

Post by Mark »

Hi,

What about hiding the picture as soon as it is created?

lock screen
make picture
hide picture
unlock screen

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Export an image to another card.

Post by Klaus »

Hi,

I did not try this, but since a new imorted image from the lib depends on "the templateimage" maybe one could even:
...
set the visible of the templateimage to false
iPhonePickPhoto ...
...
?

At least worth a try.


Best

Klaus
Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Re: Export an image to another card.

Post by Kaubs »

What I have done-----

The camera button in my application now links the app user to the card I wanted images exported to and automatically starts the camera. The image is then visible in the card I want to see it in. I guess my confusion was getting over the button needing to start the camera.

Thanks guys!
Kaubs
Post Reply