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 #12394] Thu, 30 July 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
akk (anilk@mtolympus.ari.net) writes:

> 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?

Just to be a little more helpful than I had time to
be in my earlier reply, this is a pretty big image.
It may help to resize it and display it in a window
that would actually fit on the display.

Window, XSize=512, YSize=512
TVSCL, Rebin(image, 512, 512)

Or, if you wanted it to be in a resizeable graphics
window, you could do this:

XWindow, 'TVImage', /Erase, XSize=500, YSize=500, $
BytScl(image, Top=(!D.N_Colors-1) < 255)

You can add a /Keep_Aspect_Ratio keyword to the
command above if you would like the image to maintain
it's square aspect ratio as you resize the window.

You will have to download the XWINDOW and TVIMAGE programs
from my web page.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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 07:16:46 PDT 2025

Total time taken to generate the page: 0.80339 seconds