Re: Import Snapshot in iOS

2013-05-15 Thread Björnke von Gierke
Is there a bug report for this?


On 15.05.2013, at 06:47, Mark Wilcox wrote:

 Yes, the code I looked at definitely took a rect and not an object. I suspect 
 the new method is not taking a snapshot of the screen at all but rendering 
 the object into an image. Wouldn't using the new method and asking for the 
 current card work for most scenarios? Presumably if you want a subset of the 
 screen after that you can crop part of the image?
 
 
 Richard Gaskin ambassa...@fourthworld.com wrote:
 
 I recently stumbled across this post by Ender Nafi which confirm my 
 hunch that it's only the older import from rect option that fails, 
 and the newer import from object seems to work well:
 http://forums.runrev.com/viewtopic.php?f=49t=15093#p75531
 
 -- 
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com
 
 
 ___
 use-livecode mailing list
 use-livecode@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@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


-- 

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Import Snapshot in iOS

2013-05-15 Thread John Dixon
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: endern...@gmail.com
 To: use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Import Snapshot in iOS

2013-05-15 Thread Mark Wilcox
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 dixo...@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: endern...@gmail.com
 To: use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Import Snapshot in iOS

2013-05-15 Thread Richard Gaskin

Mark Wilcox wrote:

 Yes, the code I looked at definitely took a rect and not an object.
 I suspect the new method is not taking a snapshot of the screen at
 all but rendering the object into an image. Wouldn't using the new
 method and asking for the current card work for most scenarios?

I would imagine so.  In my understanding, the newer from object 
option does indeed work as you described, which is why I guessed it 
might be helpful in cases where the from rect option doesn't work.


I think Björnke's suggestion that this be reported as a bug is valid, 
since it's probably possible to change the buffer from which the from 
rect image data is obtained, from what I presume is the rendered card 
buffer to the final OS-rendered screen buffer instead.  This may be 
slightly more difficult on non-mobile systems, since the card buffer 
will be using different coordinates from the screen buffer, but even 
then those coords should be translatable.


In fact, this may help us understand why John's results are so different:

 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 ..:-)

I wonder if successful uses of from rect are using global 
coordinates, while unsuccessful ones are using local coordinates.


If this is true, I'd still consider it a bug but at least it becomes 
somewhat understandable, in that perhaps local coords pull from the card 
buffer (which is in tiles with acceleratedRendering turned on) while 
global coords perhaps pull from the final composited screen buffer.


That's just a wild guess, though.  But since John's seeing good results 
while others are seeing blank images, there must be some difference 
somewhere.


Perhaps we should note engine version numbers with results as this 
discussion continues?  It may be that ongoing enhancements to the 
rendering subsystem introduced a change in a relatively recent version 
which is the cause of this.


--
 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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Import Snapshot in iOS

2013-05-15 Thread J. Landman Gay
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  of this card  and it should work. 

Mark Wilcox m_p_wil...@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 dixo...@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: endern...@gmail.com
 To: use-livecode@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@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@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@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 | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

RE: Import Snapshot in iOS

2013-05-14 Thread John Dixon
Roger...

I use 'import snapshot' on an app in the iTunes store... acceleratedRendering 
is true. I am not have had any problems..

Dixie

 Subject: Import Snapshot in iOS
 From: i...@mac.com
 Date: Tue, 14 May 2013 05:25:34 -0700
 To: use-livecode@lists.runrev.com
 
 Hi,
 
 I've discovered that Import Snapshot does not work in iOS if 
 acceleratedRendering is set to true. Works fine in OS X but not iOS. Any 
 thoughts?
 
 Thanks,
 Roger

  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Thomas McGrath III
Hadn't tried it with acceleratedRendering true. a-r can be turned off at will 
so it shouldn't be too much of a problem but if it's a bug and not a 'feature' 
should let RR know about it.


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On May 14, 2013, at 8:25 AM, Roger Guay i...@mac.com wrote:

 Hi,
 
 I've discovered that Import Snapshot does not work in iOS if 
 acceleratedRendering is set to true. Works fine in OS X but not iOS. Any 
 thoughts?
 
 Thanks,
 Roger
 ___
 use-livecode mailing list
 use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Import Snapshot in iOS

2013-05-14 Thread John Dixon
Import snapshot works regardless of the setting of acceleratedRendering ... so, 
it's not a 'bug' or a 'feature'... it just does what is says on the tin...

 Subject: Re: Import Snapshot in iOS
 From: mcgra...@mac.com
 Date: Tue, 14 May 2013 08:57:11 -0400
 To: use-livecode@lists.runrev.com
 
 Hadn't tried it with acceleratedRendering true. a-r can be turned off at will 
 so it shouldn't be too much of a problem but if it's a bug and not a 
 'feature' should let RR know about it.
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On May 14, 2013, at 8:25 AM, Roger Guay i...@mac.com wrote:
 
  Hi,
  
  I've discovered that Import Snapshot does not work in iOS if 
  acceleratedRendering is set to true. Works fine in OS X but not iOS. Any 
  thoughts?
  
  Thanks,
  Roger
  ___
  use-livecode mailing list
  use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Roger Guay
No doubt, you're correct John. But, in my case, acceleratedRendering is the one 
line of code that results in snapshot not working in iOS. I've tried moving it 
from openStack to preopenStack to no avail. Can you think of any reason why 
this might be?


Thanks,
Roger



On May 14, 2013, at 7:41 AM, John Dixon dixo...@hotmail.co.uk wrote:

 Import snapshot works regardless of the setting of acceleratedRendering ... 
 so, it's not a 'bug' or a 'feature'... it just does what is says on the tin...
 
 Subject: Re: Import Snapshot in iOS
 From: mcgra...@mac.com
 Date: Tue, 14 May 2013 08:57:11 -0400
 To: use-livecode@lists.runrev.com
 
 Hadn't tried it with acceleratedRendering true. a-r can be turned off at 
 will so it shouldn't be too much of a problem but if it's a bug and not a 
 'feature' should let RR know about it.
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On May 14, 2013, at 8:25 AM, Roger Guay i...@mac.com wrote:
 
 Hi,
 
 I've discovered that Import Snapshot does not work in iOS if 
 acceleratedRendering is set to true. Works fine in OS X but not iOS. Any 
 thoughts?
 
 Thanks,
 Roger
 ___
 use-livecode mailing list
 use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Roger Guay
I just tried it on a stack that Ender provided and again, found that snapshot 
does not work in iOS if acceleratedRendering is set true on openStack. BTW, I'm 
using LC 5.5.4.

Roger

On May 14, 2013, at 9:16 AM, Roger Guay i...@mac.com wrote:

 No doubt, you're correct John. But, in my case, acceleratedRendering is the 
 one line of code that results in snapshot not working in iOS. I've tried 
 moving it from openStack to preopenStack to no avail. Can you think of any 
 reason why this might be?
 
 
 Thanks,
 Roger
 
 
 
 On May 14, 2013, at 7:41 AM, John Dixon dixo...@hotmail.co.uk wrote:
 
 Import snapshot works regardless of the setting of acceleratedRendering ... 
 so, it's not a 'bug' or a 'feature'... it just does what is says on the 
 tin...
 
 Subject: Re: Import Snapshot in iOS
 From: mcgra...@mac.com
 Date: Tue, 14 May 2013 08:57:11 -0400
 To: use-livecode@lists.runrev.com
 
 Hadn't tried it with acceleratedRendering true. a-r can be turned off at 
 will so it shouldn't be too much of a problem but if it's a bug and not a 
 'feature' should let RR know about it.
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On May 14, 2013, at 8:25 AM, Roger Guay i...@mac.com wrote:
 
 Hi,
 
 I've discovered that Import Snapshot does not work in iOS if 
 acceleratedRendering is set to true. Works fine in OS X but not iOS. Any 
 thoughts?
 
 Thanks,
 Roger
 ___
 use-livecode mailing list
 use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Ender Nafi Elekçioğlu
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…



~ Ender Nafi

~… together, we're smarter …~
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Import Snapshot in iOS

2013-05-14 Thread Richard Gaskin

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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Roger Guay
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 ambassa...@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Mark Wilcox
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 i...@mac.com
To: How to use LiveCode use-livecode@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 ambassa...@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Import Snapshot in iOS

2013-05-14 Thread Roger Guay
I am always amazed at the talent on this list! Indeed, I am getting a black 
image if I set a-R true. OTH, John Dixon's stack works! What's up with that?

Roger


On May 14, 2013, at 1:13 PM, Mark Wilcox m_p_wil...@yahoo.co.uk wrote:

 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 i...@mac.com
 To: How to use LiveCode use-livecode@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 ambassa...@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Richard Gaskin
I recently stumbled across this post by Ender Nafi which confirm my 
hunch that it's only the older import from rect option that fails, 
and the newer import from object seems to work well:

http://forums.runrev.com/viewtopic.php?f=49t=15093#p75531

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Import Snapshot in iOS

2013-05-14 Thread Ender Nafi Elekçioğlu
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Import Snapshot in iOS

2013-05-14 Thread Roger Guay
Very clever, Ender. Thanks!

On May 14, 2013, at 5:13 PM, Ender Nafi Elekçioğlu endern...@gmail.com wrote:

 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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Import Snapshot in iOS

2013-05-14 Thread Mark Wilcox
Yes, the code I looked at definitely took a rect and not an object. I suspect 
the new method is not taking a snapshot of the screen at all but rendering the 
object into an image. Wouldn't using the new method and asking for the current 
card work for most scenarios? Presumably if you want a subset of the screen 
after that you can crop part of the image?


Richard Gaskin ambassa...@fourthworld.com wrote:

I recently stumbled across this post by Ender Nafi which confirm my 
hunch that it's only the older import from rect option that fails, 
and the newer import from object seems to work well:
http://forums.runrev.com/viewtopic.php?f=49t=15093#p75531

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode