On Jun 29, 2011, at 1:04 PM, Richard Somers wrote:

> In System Preferences a user may select a specific display resolution.
> 
> Some display resolutions will stretch the visible area to fill the display as 
> needed. But some display resolutions will pillarbox where a black bar is 
> placed on the left and right of the visible area.
> 
> Is it possible to programmatically detect when the current display resolution 
> is letterboxing or pillarboxing?

No, because that's up the monitor to decide what to do when that happens. For 
example, if the user has a 16:10 aspect ratio monitor and sets the resolution 
to 1080p instead of 1200p, then some monitors will stretch the image 
vertically, some will preserve the aspect ratio by letterboxing the image, and 
some will have a setting that lets the user decide how to handle the 
situation*. Unless the user is using one of Apple's built-in laptop displays, 
which always stretch the image IIRC, you can't count on this being set one way 
or the other.

Nick Zitzmann
<http://www.chronosnet.com/>

* Yes, this is a wedge issue for a lot of people...

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to