comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: object graphics tvrd problem....
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: object graphics tvrd problem.... [message #64431 is a reply to message #64430] Mon, 29 December 2008 11:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ghgm2008@gmail.com writes:

> I have an object graphics program and I want this to write a .png file
> every minute - via a screengrab.
> Under OSX this works fine - no problem... but on my main work machine
> (LINUX) it grabs the screen too literally
> - I get any windows in front - the screensaver - all sorts of stuff.
>
> How do I make sure that the screengrab just grabs the correct window ?

I would try showing the window before you take a snapshot
of it. Maybe even waiting a second or so to give the graphics
engine time to catch up:

info.Main_Window -> Show, 1
Wait, 0.75
info.Main_Window -> GetProperty, IMAGE_DATA=snapshot

Let me know if this works. :-)

Cheers,

David

P.S. I would have thought setting RETAIN=2 on your Widget_Draw
call would have solved the problem, though.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Map_Proj_Inverse Bug?
Next Topic: Yet Another Reason Not to Use MAP_SET

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 19:46:18 PDT 2025

Total time taken to generate the page: 0.32090 seconds