Display Letterboxing Pillarboxing

2011-06-29 Thread Richard Somers
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?

The Quartz Display Services Reference does not seem to have any functions that 
reveal this information.

http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html

--Richard

___

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


Re: Display Letterboxing Pillarboxing

2011-06-29 Thread Nick Zitzmann

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