| Re: pictures without borders, full screen pictures [message #10845 is a reply to message #10831] |
Mon, 16 February 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Sangeet Singh (singh@xraylith.wisc.edu) writes:
> I'm running IDL 4.x remotely on a Sun using an xterm emulator on my
> Win 95 machine. IDL and my xterm emulator both agree on my screen
> size (currently 800 x 600). Is it possible for me to use IDL to
> display a 800 x 600 image array so that it will fill up the entire
> screen, without showing any window borders etc.? When I use the
> WINDOW command, the window is off center and I have the title bar
> and window borders to contend with. Can I get rid of the bar and the
> borders for any size image?
You can get rid of the title bar, but you can't get rid of the borders.
A window is, after all, a window and there are rules about windows. One
of which is they have borders. The borders can be quite small. This code
on my Windows NT machine gives me a window that is actually 802 by 602.
Function BigWindow, wid
tlb = Widget_Base(TLB_Frame_Attr=4)
drawID = Widget_Draw(tlb, XSize=800, YSize=600)
Widget_Control, tlb, /Realize
Widget_Control, drawID, Get_Value=wid
WSet, wid
Widget_Control, tlb, TLB_GET_SIZE=thisSize
Print, 'Actual window size: ', thisSize
RETURN, tlb
END
widgetID = BigWindow(wid)
TVScl, Dist(800, 600)
Wait, 5
Widget_Control, widgetID, /Destroy
END
> In other words, if I want to be able to paint the (m,n)-th pixel on my
> display red, can I use IDL to do it?
No. :-)
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/
|
|
|
|