Re: Importing a Snapshot from a window off screen
Ray wrote: Paul - once again thanks for this insight. I'd thought I'd let you know the following script which groups everything on the card, gets a snapshot /of the group/, and then ungroups everything, is working well. on importGroupSnapshot snapName,myRect repeat with C=1 to number of controls set the selected of control C to true end repeat group import snapshot from rectangle myRect of last grp set the name of last img to snapName select last group ungroup select empty choose the browse tool end importGroupSnapshot Unless you need the group for other purposes, you can use the card object directly. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the 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: Importing a Snapshot from a window off screen
Paul - once again thanks for this insight. I'd thought I'd let you know the following script which groups everything on the card, gets a snapshot /of the group/, and then ungroups everything, is working well. on importGroupSnapshot snapName,myRect repeat with C=1 to number of controls set the selected of control C to true end repeat group import snapshot from rectangle myRect of last grp set the name of last img to snapName select last group ungroup select empty choose the browse tool end importGroupSnapshot Thanks again! On 9/18/15 11:37 AM, Paul Hibbert wrote: Ray, Importing a snapshot from rect uses the computer’s graphic card to generate the snapshot image, whereas, importing a snapshot from an object (group, card, stack etc.) allows the LC engine to generate the snapshot image. I’m travelling right now so can’t test so easy, but I’m sure if you can drop the ‘from rect’ you should see an improvement. Paul On 18 Sep 2015, at 08:32, Raywrote: Greetings - Has anybody had any success importing a snapshot from a stack's window which is offscreen? I'm looping through every card in a stack to import a snapshot using something like: import snapshot from rect myRect of window myWinId This causes a lot of annoying screen flicker so I'd like to place the stack's window off screen, do the importing and then return it on screen. But doing so gives me blank images for the snapshots. Any suggestions? Thanks! ___ 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: Importing a Snapshot from a window off screen
Good point Richard. I had tried importing from the stack which didn't work so I [wrongly] assumed it also would not work from the card. But it does! That's even easier. On 9/18/15 3:21 PM, Richard Gaskin wrote: Ray wrote: Paul - once again thanks for this insight. I'd thought I'd let you know the following script which groups everything on the card, gets a snapshot /of the group/, and then ungroups everything, is working well. on importGroupSnapshot snapName,myRect repeat with C=1 to number of controls set the selected of control C to true end repeat group import snapshot from rectangle myRect of last grp set the name of last img to snapName select last group ungroup select empty choose the browse tool end importGroupSnapshot Unless you need the group for other purposes, you can use the card object directly. ___ 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
Importing a Snapshot from a window off screen
Greetings - Has anybody had any success importing a snapshot from a stack's window which is offscreen? I'm looping through every card in a stack to import a snapshot using something like: import snapshot from rect myRect of window myWinId This causes a lot of annoying screen flicker so I'd like to place the stack's window off screen, do the importing and then return it on screen. But doing so gives me blank images for the snapshots. Any suggestions? Thanks! ___ 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: Importing a Snapshot from a window off screen
Ah haaa! so that's what's going on. I'll give it a try. Many thanks! On 9/18/15 11:37 AM, Paul Hibbert wrote: Ray, Importing a snapshot from rect uses the computer’s graphic card to generate the snapshot image, whereas, importing a snapshot from an object (group, card, stack etc.) allows the LC engine to generate the snapshot image. I’m travelling right now so can’t test so easy, but I’m sure if you can drop the ‘from rect’ you should see an improvement. Paul On 18 Sep 2015, at 08:32, Raywrote: Greetings - Has anybody had any success importing a snapshot from a stack's window which is offscreen? I'm looping through every card in a stack to import a snapshot using something like: import snapshot from rect myRect of window myWinId This causes a lot of annoying screen flicker so I'd like to place the stack's window off screen, do the importing and then return it on screen. But doing so gives me blank images for the snapshots. Any suggestions? Thanks! ___ 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: Importing a Snapshot from a window off screen
Ray, Importing a snapshot from rect uses the computer’s graphic card to generate the snapshot image, whereas, importing a snapshot from an object (group, card, stack etc.) allows the LC engine to generate the snapshot image. I’m travelling right now so can’t test so easy, but I’m sure if you can drop the ‘from rect’ you should see an improvement. Paul > On 18 Sep 2015, at 08:32, Raywrote: > > Greetings - Has anybody had any success importing a snapshot from a stack's > window which is offscreen? > > I'm looping through every card in a stack to import a snapshot using > something like: > > import snapshot from rect myRect of window myWinId > > This causes a lot of annoying screen flicker so I'd like to place the stack's > window off screen, do the importing and then return it on screen. But doing > so gives me blank images for the snapshots. > > Any suggestions? > > Thanks! > > > > ___ > 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