Export Snapshot woes...

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Export Snapshot woes...

Post by joel.epsteinBUS31vi » Mon Nov 19, 2012 11:24 pm

Hi all -

I have these two lines of code:

Code: Select all

   
put the rect of image "mask" of card "Main" into tFrame
export snapshot from rect tFrame to pictVariable as PNG
They seem to be working fine in the iOS simulator and my iPad.

However, whenever I get to this point in my script on the Android simulator, the program just seems to hang.

Is there something I need to do differently for the "export snapshot" to make it work on the Android?

Thanks so much.

Joel

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Export Snapshot woes...

Post by jacque » Tue Nov 20, 2012 8:57 pm

That should work okay. Maybe it's getting hung up on whatever line comes next instead. Or maybe image "mask" isn't there?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: Export Snapshot woes...

Post by joel.epsteinBUS31vi » Tue Nov 20, 2012 9:18 pm

Thanks for the input. Fortunately, I know the code is good, because it works on Mac and iOS. The problem is when using it on the Android Simulator.

I heard back from support and was told that "export snapshot" is not currently available for the Android platform, but will be included in a future release.

I see that in the Android release notes that "full screen snapshot" commands do not work, but "object snapshot" commands do work. I'm not sure exactly what the latter means. Any ideas?

Peace.

Joel

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Export Snapshot woes...

Post by jacque » Wed Nov 21, 2012 6:54 am

I missed that info about Android, that's good to know. A full screen snapshot is basically a screenshot of all or part of the screen. An object snapshot is a newer variation that captures only an isolated object. Object snapshots use the syntax "from <object>":

export snapshot from field 1 to...
export snapshot from image "myPhoto" to var as PNG

When you snapshot an object you get only that object and not anything else on the screen that may overlap it. It isn't a screenshot, it's a reproduction of the object itself as if it were all alone on a transparent surface.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply