Import Snapshot in iOS

J. Landman Gay jacque at hyperactivesw.com
Wed May 15 10:00:57 CDT 2013


Yes, I asked about this and according to RR import from rect hasn't been implemented in iOS for some technical reasons.  But you can "import snapshot from rect xxxx of this card"  and it should work. 

Mark Wilcox <m_p_wilcox at yahoo.co.uk> wrote:

>Is everyone using the same versions of LiveCode and iOS? The code in
>GitHub looks like it won't successfully capture a rectangle from an
>"accelerated" screen on any recent iOS version.
>
>
>John Dixon <dixonja at hotmail.co.uk> wrote:
>
>>Ender...
>>
>>There is not a problem with importing a snapshot from a rectangle !..
>and it doesn't matter is acceleratedRendering is true or false.. or has
>even left the room ..:-)
>>
>>> Date: Wed, 15 May 2013 03:13:59 +0300
>>> From: endernafi at gmail.com
>>> To: use-livecode at lists.runrev.com
>>> Subject: Re: Import Snapshot in iOS
>>> 
>>> Yepp :)  
>>> *import from <object>* works fine.
>>> The problem is *import from rect* notation.
>>> 
>>> @Roger,
>>> for now the only solution seems this piece of code:
>>> _set the acceleratedRendering of this stack to false
>>> _import snapshot from rect tRect
>>> _set the acceleratedRendering of this stack to true
>>> 
>>> My sample stack in the forum post works without a glitch with this
>update.
>>> So, the code in that stack does 3 things:
>>> * Prohibits the black snapshot {turning off the a-R temporarily}
>>> * Prohibits the transparent blank snapshot {excluding the iPhone
>status bar}
>>> * Places the final snapshot into the visible portion of the screen
>>> 
>>> 
>>> Best,
>>> 
>>> ~ Ender Nafi
>>> 
>>> ~… together, we're smarter …~
>>> _______________________________________________
>>> 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
>_______________________________________________
>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

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list