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 » Wed Jul 06, 2011 8:10 pm

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 » Thu Jul 07, 2011 11:05 am

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: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Export an image to another card.

Post by Klaus » Thu Jul 07, 2011 11:13 am

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 » Thu Jul 07, 2011 9:50 pm

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