Re: [R] Determining physical display dimensions

From: Earl F. Glynn <efg_at_stowers-institute.org>
Date: Sat 20 Aug 2005 - 04:17:38 EST

"Berton Gunter" <gunter.berton@gene.com> wrote in message news:200508191747.j7JHlEBV017029@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 20 04:28:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:55 EST