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

Home » Public Forums » archive » 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
object graphics tvrd problem.... [message #64432] Mon, 29 December 2008 11:18
ghgm2008 is currently offline  ghgm2008
Messages: 17
Registered: December 2008
Junior Member
Hi there,

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 ?

Here is my code:

First the Draw window:

drawID = Widget_Draw(horizontal_base, XSize=750, YSize=750,
Graphics_Level=2, Retain=0, $
Expose_Events=1, Event_Pro='stp_Draw_Events', Button_Events=1)

Then I get the value ....

Widget_Control, drawID, Get_Value=Main_Window

And here is the screengrab bit:

info.Main_Window->GetProperty, Image_Data=snapshot
filename = 'testfile.png'
write_png,filename,snapshot

Like I say - under OSX this works fine - but on my LINUX box I am
alway reading the wrong things
(screensaver etc.)

I've tried messing with the Retain=0 bit - but no success.

Do I have to do this as a Z-buffer thingy ?

Thanks for any help.....

George.
[Message index]
 
Read Message
Previous Topic: Image data: where i can find these?
Next Topic: Map_Proj_Inverse Bug?

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

Current Time: Fri Oct 10 03:42:07 PDT 2025

Total time taken to generate the page: 1.43850 seconds