Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
- Subject: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
- From: Mike Paquette <email@hidden>
- Date: Fri, 7 Jan 2005 16:06:47 -0800
/*
* 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 3:39 PM, John Stiles wrote:
That's nice from a computer-science perspective, but if you want to
draw something on-screen that's an actual inch, it's not helpful
information. You need to scale things to match the monitor DPI. This
should be as simple as a transformation matrix with a scale factor in
it—which, of course, you wouldn't apply when printing.
_______________________________________________
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