• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Subject: WYSIWIG drawing vs printing (was drawing scaled lines) (From: "Erik M. Buck" <email@hidden>)
 >Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines) (From: John Stiles <email@hidden>)

  • Prev by Date: NSTask with non-ASCII paths
  • Next by Date: Re: Default Button heartBeat bug
  • Previous by thread: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Next by thread: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Index(es):
    • Date
    • Thread