• 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: Drawing scaled lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Drawing scaled lines (From: Alex Eddy <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 2, Issue 31
  • Next by Date: Re: NSTask with non-ASCII paths
  • Previous by thread: Re: Drawing scaled lines
  • Next by thread: Re: Drawing scaled lines
  • Index(es):
    • Date
    • Thread