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

Home » Public Forums » archive » Re: idl window resizing
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: idl window resizing [message #12395 is a reply to message #12394] Thu, 30 July 1998 00:00 Go to previous messageGo to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
akk wrote:
> I have created an image which is an array of size 1024x1024. However when
> I use tvscl to view the image the idl display window which pops up is
> smaller than 1024x1024. Does someone know how I can change the size of
> the display window, so that I can view the entire image?

Try this:

;- Create a draw widget

base = widget_base()
draw = widget_draw( base, xsize=1024, ysize=1024, x_scroll_size=700,
y_scroll_size=700 )
widget_control, base, /realize

;- Get the window id and make sure the window is active

widget_control, draw, get_value = window
wset, window

;- Display a big image

data = rebin( dist(64), 1024, 1024 )
ncolors = !d.table_size - 1
tv, bytscl( data, top=ncolors )

Cheers,
Liam.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Toggle buttons in pull down menu
Next Topic: idl window resizing

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

Current Time: Sun Oct 12 14:51:37 PDT 2025

Total time taken to generate the page: 0.08434 seconds