• 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: Pixel Size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pixel Size


  • Subject: Re: Pixel Size
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 29 Sep 2006 20:01:15 +0200


On 29 Sep 2006, at 09:41, Shawn Erickson wrote:


On Sep 28, 2006, at 11:55 PM, Gerriet M. Denkmann wrote:


On 28 Sep 2006, at 14:37, Dmitry Savenok wrote:

try this
width = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize] sizeValue].width;
height = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize] sizeValue].height;
width, height - screen size in pixels

Thanks very much. But, as you certainly know, the size of a pixel is computed as
screen width in mm / screen width in pixels and screen height in mm / screen height in pixels.


So the next question: How do I get the screen dimensions in mm (or any other length unit) ?

In Google... "screen dpi site:developer.apple.com"

First hit: <http://developer.apple.com/qa/qa2001/qa1217.html>

Thank you very much for this link.

But now I have another problem:
IOKit tells me that my iBook has a screen 250 x 180 mm.
But when I apply a ruler to this screen I see something like 245.5 x 184.1 mm.
Am I suffering from a reality distortion field? Is this some relativistic effect? Or are Apple engineers just not familiar with un- american units like mm ?


Same with my Studio Display: IOKit says 330 x 270 mm. I think 338 x 271.

Kind regards

Gerriet.

_______________________________________________
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: 
 >Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Pixel Size (From: "Dmitry Savenok" <email@hidden>)
 >Re: Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Pixel Size (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Change selected Text using changeAttributes:
  • Next by Date: Re: Drag From iTunes in NSView just like iWeb did
  • Previous by thread: Re: Pixel Size
  • Next by thread: Re: Pixel Size
  • Index(es):
    • Date
    • Thread