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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
