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

Home » Public Forums » archive » Re: TVRD() and WRITE_GIF
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: TVRD() and WRITE_GIF [message #18641 is a reply to message #18639] Tue, 25 January 2000 00:00 Go to previous messageGo to previous message
Ivan Zimine is currently offline  Ivan Zimine
Messages: 40
Registered: February 1999
Member
Hi,

widget_control, drawID, get_value=win_id
;get_value returns window id (in direct graphics)!

wset, win_id ; make this window current

good luck
Ivan


Mark Buckley wrote:
>
> 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


--
Ivan Zimine
Dpt. of Radiology (MRI), Geneva University Hospitals
email: ivan.zimine@physics.unige.ch
tel. : (+41 22) 372 70 70
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Listing all top-level widgets
Next Topic: perimeter of a blob

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

Current Time: Fri Oct 10 03:31:22 PDT 2025

Total time taken to generate the page: 6.40136 seconds