Import Snapshot in iOS
Mark Wilcox
m_p_wilcox at yahoo.co.uk
Tue May 14 16:13:27 EDT 2013
I looked up the iOS snapshot code. It looks to me as if it renders the contents of the window into a bitmap context. I've written my own screen snapshot and video recording code on iOS and this doesn't capture the contents of a view/window drawn directly with OpenGL - for that you need to read back the pixels from the hardware graphics accelerator directly.
So if my understanding of "accelerated rendering" is correct, then this shouldn't work - if LiveCode didn't block you making the call in that mode, you should get back a black image.
I'm hoping to find out how to trace my way down from a command to the code that implements it in a workshop on Thursday. Curious to look at this one some more when I understand the code better.
Mark
________________________________
From: Roger Guay <irog at mac.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Tuesday, 14 May 2013, 19:59
Subject: Re: Import Snapshot in iOS
Richard,
I presume you were asking anyone on the list. I, for one, do not know!
Roger
On May 14, 2013, at 9:37 AM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> Ender Nafi wrote:
>> Roger's right.
>> It's an odd thing but setting the a-R to true prohibits importing snapshots.
>> Commenting it out fixes the issue.
>> Not tested in LiveCode 6.0.1, though…
>
> That's not mentioned in the Dictionary. Is that a documentation bug, or does it only affect the older method of importing snapshots by rect while still allowing the new method of making snapshots from object references?
>
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> Follow me on Twitter: http://twitter.com/FourthWorldSys
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list