Re: Resolution Independent View?
Re: Resolution Independent View?
- Subject: Re: Resolution Independent View?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 12 May 2009 16:29:49 +0200
On 12.05.2009, at 12:35, Alastair Houghton wrote:
If, however, you really want the display to physically show a 5cm x
5cm block, you can obtain the screen's actual dimensions in
millimeters from CGDisplayScreenSize() and then use those numbers in
conjunction with the pixel dimensions to calculate a suitable
transform.
Last I looked into this, many screens just returned 72 dpi from that
API, though. Many screens apparently don't provide this information,
or not correctly. Make sure to do some tests, particularly with cheap
screens from the electronics discounter around the corner.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden