Page 1 of 1

Export Snapshot woes...

Posted: Mon Nov 19, 2012 11:24 pm
by joel.epsteinBUS31vi
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

Re: Export Snapshot woes...

Posted: Tue Nov 20, 2012 8:57 pm
by jacque
That should work okay. Maybe it's getting hung up on whatever line comes next instead. Or maybe image "mask" isn't there?

Re: Export Snapshot woes...

Posted: Tue Nov 20, 2012 9:18 pm
by joel.epsteinBUS31vi
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

Re: Export Snapshot woes...

Posted: Wed Nov 21, 2012 6:54 am
by jacque
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.