本文介绍了程序员将在Macbook Pro Retina中获得什么分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:这个问题可能不适用于SO,但是我想在这里问一下,因为我想听听Mac OS X开发人员的意见。

Note: this question may not be suitable to SO, but I'd like to ask here because I want to hear from Mac OS X developers.

Macbook Pro视网膜(MPB Retina)的原始分辨率为2880x1800。但是,这种本机分辨率不会直接公开。而是提供了1440x900和1920x1200这样的分辨率,如下图所示。

Macbook Pro Retina (MPB Retina) has a native 2880x1800 resolution. However, such native resolution is not directly exposed. Rather, resolutions like 1440x900 and 1920x1200 are provied as shown in the below figure.

我想知道程序员将看到的分辨率。是2880x1800吗?还是分辨率降低了?

I want to know what resolution programmers will see. Is it 2880x1800? Or, a reduced resolution?

我对Mac OS X如何处理这种超显示特别感兴趣。可能有两种方法:(1)Mac OS X设置2880x1800分辨率,然后为所有程序调整DPI缩放; (2)只需将原始DPI设置为较低的分辨率即可。 (简单)

I'm particularly interested in how Mac OS X handles such ultra display. There could be two approaches: (1) Mac OS X sets the 2880x1800 resolution, and then tweaks DPI scaling for all programs; (2) Just set lower resolution while having the original DPI setting. (simple)

因为我没有为Mac OS X编写应用程序的经验,所以我真的很想看看Mac OS X如何处理此分辨率,以及产生什么影响

Because I have no experience in writing an application for Mac OS X, I really want to see how Mac OS X handles this resolution, and what is the impacts for programmers to adapt retina display.

推荐答案

据我所知,在1680x1050和1920x1200中,Mac OS实际上将虚拟分辨率设置为两倍。 (分别为3360x2100或3840x2400),然后降级为物理分辨率2880x1800。这样可以使生成的图像非常清晰(但是会降低性能)。程序员看到的分辨率取决于应用程序是否启用了Retina。 Mac OS永远不会更改应用程序的DPI。

From what I know, in 1680x1050 and 1920x1200 Mac OS actually sets virtual resolution to twice as that (so 3360x2100 or 3840x2400 respectively) and then downscales to physical resolution 2880x1800. This allows resulting image to be quite sharp (there is a performance penalty though). What resolution a programmer see depends on whether application is Retina-enabled or not. Mac OS never changes DPI for apps.

Apple已提供了有关该主题的详尽指南。您可以在这里找到它:

Apple has provide an extensive guide on the topic. You can find it here: http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Introduction/Introduction.html

这篇关于程序员将在Macbook Pro Retina中获得什么分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 03:20