Re: Getting info on the whole screen in IDL [message #3573] |
Tue, 21 February 1995 01:45  |
sjt
Messages: 72 Registered: November 1993
|
Member |
|
|
Wayne Landsman (301)-286-3625 (landsman@sorbet.gsfc.nasa.gov) wrote:
: In article <3i2euu$knu@adam.cc.sunysb.edu>, Chris Jacobsen
: <jacobsen@xray1.physics.sunysb.edu> writes...
: >The IDL parameters !D.X_SIZE and so forth tell you information
: >about the active display window (at least as far as I can tell).
: >
: >I wanted to be able to find about the whole screen so as to
: >decide how big to make windows and fonts and so on.
: >
: >I have written a routine
: > IDL> xpixels,xpix,ypix,xmm,ymm
: > IDL> print,xpix,ypix,xmm,ymm
: > 1024 768 283.000 212.000
: The GET_SCREEN_SIZE keyword to the DEVICE command under X windows will give
: you the size of the entire screen in pixels. I think you still have to link
: to the C program to get the size in mm.
Not if the screen is properly set up. The GET_SCREEN_SIZE gives the screen
size and the !D.[xy]_px_cm give the pixels/cm. From which it is trivial
to extract the size of the screen in cm.
: --Wayne Landsman landsman@stars.gsfc.nasa.gov
--
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 021-414-6462. Fax: 021-414-3722 | |
+----------------------------------------------------------- --+---------+
|
|
|