macos:Displays

出自UXGuide.net

跳转到:导航, 搜索

显示
Displays

Avoid making assumptions about display size. Mac OS X can run on systems with a screen size as small as 800 x 600, but a user may have multiple high-resolution displays. Unless you know that your users will be using a specific display size, it is best to optimize your applications for display at 1024 x 768 pixels.

避免对显示器的大小做出任何假设。Mac OS X可以在低至800x600的屏幕大小上运行,但是用户可能有多个高分辨率的显示器。除非您确定用户会使用特定的屏幕大小,否则最好优化您的程序在1024 x 768像素下的显示。

Note: A resolution of 640 x 480 is also available for the iBook and for Classic applications, games, and other multimedia applications. This does not mean that you should assume this is the minimum system resolution, however. Design your user interface for a resolution of at least 800 x 600.

注意: 640x480的分辨率在iBook或者一些老的应用程序,游戏以及其他的多媒体程序上仍然可用,但是这并不意味着您能够假设这是系统的最小分辨率。您应该根据显示大小最小是800x600来设计您的用户接口。

Be aware that users may have the ability to rotate their displays, so you should also avoid making assumptions about the aspect ratio. Display rotation reverses the aspect ratio of the screen. For example, if a user's display is set to a screen resolution of 800 x 600 (an aspect ratio of 1.33:1), after rotation the screen resolution is 600 x 800 (an aspect ratio of .75:1).

用户可能能够旋转他们的显示器,所以您应该避免对分辨率做出假设。显示器的旋转颠倒了屏幕的分辨率。例如,如果用户的显示分辨率为800x600(1.33:1),在旋转之后屏幕分辨率为600x800(比例是0.75:1)。

An application can get notified of some types of screen-update events by registering for a callback, such as CGDisplayReconfigurationCallBack. For more information on this and other callbacks, see Quartz Display Services Reference.

程序可以注册一些回调函数来得到某些屏幕更新事件的通知,例如CGDisplayReconfigurationCallBack。关于其他回调函数的更多信息,请参考Quartz显示服务参考

导航
工具箱