[R] Determining physical display dimensions

Earl F. Glynn efg at stowers-institute.org
Fri Aug 19 20:17:38 CEST 2005


"Berton Gunter" <gunter.berton at gene.com> wrote in message
news:200508191747.j7JHlEBV017029 at faraday.gene.com...

> Failing that, (how) can this be done for Windows (XP or 2000, say) ?

Take a look at the Windows GetDeviceCaps API call
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_88s3.asp

Parameters that can be queried include:
HORZRES  Width, in pixels, of the screen.
VERTRES Height, in raster lines, of the screen.

HORZSIZE Width, in millimeters, of the physical screen
VERTSIZE  Height, in millimeters, of the physical screen

The specifics of how to use this API call will vary by language.  Google
will be your friend.

efg
Bioinformatics
Stowers Institute for Medical Research




More information about the R-help mailing list