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

Home » Public Forums » archive » Re: [Q]Finding Screen Resolution in IDL
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: [Q]Finding Screen Resolution in IDL [message #6803] Thu, 29 August 1996 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Tim Patterson wrote:
>
> So, is there a way to test which resolution screen I'm on and
> set the font point-size accordingly (perhaps something using
> the size of the screen in pixels which I can get via IDL).
>

Check out the documentation for the !D graphics system variable.
The fields X_VSIZE, Y_VSIZE give the size of the visible area of
the display; X_CH_SIZE and Y_CH_SIZE give the normal width and height of
a character in device units. X_PX_CM and Y_PX_CM give the approximate
number of pixels per cm in X and Y direction.

Hope this helps.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Previous Topic: Re: how to animate/loop plots (not images)
Next Topic: Re: Another widget_button question

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

Current Time: Wed Oct 08 13:28:57 PDT 2025

Total time taken to generate the page: 0.74952 seconds