Re: Drawing scaled lines
Re: Drawing scaled lines
- Subject: Re: Drawing scaled lines
- From: Mike Paquette <email@hidden>
- Date: Fri, 7 Jan 2005 17:13:11 -0800
In 10.3 CG also can report the physical size:
/*
* Returns the size of the specified display in millimeters.
*
* If 'display' is not a valid display ID, the size returned has a
width and height of 0.
*
* If EDID data for the display device is not available, the size is
estimated based on
* the device width and height in pixels from CGDisplayBounds(), with
an assumed resolution
* of 2.835 pixels/mm, or 72 DPI, a reasonable guess for displays
predating EDID support.
*/
CGSize CGDisplayScreenSize(CGDirectDisplayID display)
AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;
On Jan 7, 2005, at 4:48 PM, Alex Eddy wrote:
quote: "IOKit can tell you the physical dimensions of the monitor in
millimeters while CG knows the current display resolution."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden