TVRD() and WRITE_GIF [message #18647] |
Tue, 25 January 2000 00:00 |
Mark Buckley
Messages: 7 Registered: December 1998
|
Junior Member |
|
|
Hi,
Hopefully this won't turn out to be a dozy question - I'm a bit out of
practise on IDL at the moment.
Anyway, what I'd like to do is grab a window image, so that I can write it
out as a GIF.
The difficulty I'm having is that as I'm using widgets, I'm not sure how to
get the actual window ID for the
the call to TVRD(), all I seem to get back is the draw widget contents.
e.g.
pro get_window
base = widget_base(/column)
junk = widget_label(base,value = "Hi")
draw = widget_draw(base,xsize=200,ysize=300)
.
.
widget_control,base,/realize
widget_control,draw,get_value = draw_id
res = tvrd()
help,res
end
This just returns me an array of the draw widget (200x300), not the whole
window.
cheers,
Mark
|
|
|