“结合高分辨率艺术品”在XCode 4? [英] "Combine High Resolution Artwork" in XCode 4?

查看:92
本文介绍了“结合高分辨率艺术品”在XCode 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在XCode 4中处理iOS项目时(也许它也在XCode 3中,我只是没有注意到它),在构建设置下有一个名为Combine High Resolution Artwork的字段,可以设置为yes或者没有。

In XCode 4 when working on an iOS project (maybe it was in XCode 3 too and I just hadn't noticed it) there is field under build settings called "Combine High Resolution Artwork", which can be set to yes or no.

这个设置到底是做什么的?

What exactly does this setting do?

推荐答案

来自Xcode的快速帮助:

From Xcode's quick help:


组合高分辨率图稿COMBINE_HIDPI_IMAGES

Combine High Resolution Artwork COMBINE_HIDPI_IMAGES

合并图像文件at不同的分辨率为一个多页TIFF文件,符合HiDPI标准,适用于Mac OS X 10.7及更高版本。仅组合同一目录中具有相同基本名称和扩展名的图像文件。文件名必须符合HiDPI中使用的命名约定。 [COMBINE_HIDPI_IMAGES]

Combines image files at different resolutions into one multi-page TIFF file that is HiDPI compliant for Mac OS X 10.7 and later. Only image files in the same directory and with the same base name and extension are combined. The file names must conform to the naming convention used in HiDPI. [COMBINE_HIDPI_IMAGES]

换句话说,此设置可能在iOS下无效。它将 abc.png abc@2x.png 组合成一个多页TIFF文件,这将很方便在OS X下,因为 NSImage 可以处理这些文件并使用最适合所需输出大小和设备的图像表示。如果未来的Apple硬件具有更高的屏幕分辨率,这个设置可能会在开发人员如何处理它时发挥重要作用。

In other words, the setting probably has no effect under iOS at the moment. It would combine abc.png and abc@2x.png into one multi-page TIFF file, which would be convenient under OS X because NSImage can handle such files and use the image representation that is best suited for the desired output size and device. If future Apple hardware will have higher screen resolutions, this setting will probably play an important role in how developers deal with it.

这篇关于“结合高分辨率艺术品”在XCode 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆