HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了支持新iPad高清屏的图片命名规则大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_673_2@
刚查了Apple的文档,图片的命名规则如下即可:

Devices with out reTina:
Imagename.png - For iPhone/iPod
Imagename~ipad.png -- For iPad

Devices with reTina display:
Imagename@2x~ipad.png -- For iPad
ImageName@2x.png - For iPhone/iPod


Applications running in iOS 4 should Now include two separate files for each  image  resource. One file provides a standard-resolution version of a given image,@R_874_6296@e second provides a high-resolution version of the same image. The naming conventions for each pair of image files is as follows:
    Standard: <Imagename><device_modifier>.<filename_extension>
    High resolution: <Imagename>@2x<device_modifier>.<filename_extension>
The <Imagename> and <filename_extension> portions of each name specify the usual name and extension for the file. The <device_modifier>portion is optional and contains either the String ~ipad or ~iphone. You include one of these modifiers when you want to specify different versions of an image for iPad and  iPhone . The inclusion of the @2x modifier for the high-resolution image is new and lets the system kNow that the image is the high-resolution variant of the standard image.
Important When creaTing high-resolution versions of your images,place the new versions in the same LOCATIOn in your application bundle as the original. @H_673_2@
@H_673_2@
@H_673_2@

大佬总结

以上是大佬教程为你收集整理的支持新iPad高清屏的图片命名规则全部内容,希望文章能够帮你解决支持新iPad高清屏的图片命名规则所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。