为什么在Android开发者网站的图标所有模板图像有爱和Photoshop下每英寸分辨率72像素? [英] Why are all the template images for icon in the Android developer site have resolution 72 pixels per inch under Ai and Photoshop?

查看:520
本文介绍了为什么在Android开发者网站的图标所有模板图像有爱和Photoshop下每英寸分辨率72像素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android开发者指南图标发射链接给上市像素为所需的不同密度和 DPI 规范。我下载了相同的模板,这些图像和在Photoshop中像素数为LDPI,MDPI等匹配的模板包链接。但是,当我检查在图像分辨率 - >图像大小 - >给我72pixels /英寸。我希望这个数字每英寸的像素相匹配的DPI。我如何检查dpi或recongifure它符合密度规格为不同的资源分辨率大小?


解决方案

忽略DPI设置,它无关紧要在这种情况下。 72 DPI只是默认,当你创建一个新文档上的Photoshop设置。你需要知道的唯一的事情是像素尺寸。 DPI设置仅仅是输出一个教学标记(如打印机)。如果你告诉一个640×480像素的文档在72 DPI(每英寸点数)来打印,将打印在8.88×6.66。质量会相当可怕,但是,作为打印机可产生的分辨率远远优于你的显示器。如果你告诉它以300 dpi打印,将打印在2.13×1.6,但将以更高的品质(更多的是密密麻麻的信息,因此图像会显得更连续)。要记住的事情是,无论是打印同一文档的 - 唯一的变化是信息是如何放置密集打印。

在基于像素的屏幕上,每一个像素被映射1:1的显示。如果显示的DPI(多少像素是在画面上的1线 - 更准确的PPI,或每英寸像素数)。非常高,图像将只出现小的在一个较低的DPI屏幕,相同的图像将出现小。

这就是为什么显影剂指南推荐的资产的多个版本:一个用于xhdpi,一个用于hdpi的,一个用于MDPI,一个用于LDPI与xhdpi是最大像素大小的图像,因此,最高质量的

The Android developer guide for icon launchers link gives the listed pixel and dpi specification for the different densities required. I downloaded the same templates for these images and in Photoshop the number of pixels for the ldpi, mdpi etc match up templates pack link. But the resolution when I check in Image -> Image Size -> gives me 72pixels/inch. I would expect that number of pixels per inch to match the dpi. How do I check the dpi or recongifure it to match the specifications of the densities for the different resource resolution sizes?

解决方案

Ignore the DPI setting, it's irrelevant in this situation. 72 DPI is just the default setting on Photoshop when you create a new document. The only thing you need to be aware of are the pixel dimensions. The DPI setting is simply an instructional marker for output such as a printer. If you tell a 640 x 480 pixel document to print at 72 DPI (dots per inch), it will print at 8.88" x 6.66". The quality will be quite terrible, though, as the resolution that a printer can produce is far superior to your display. If you tell it to print at 300 DPI, it will print at 2.13" x 1.6", but will be higher quality (the information is more densely packed, so the image will appear more continuous). The thing to keep in mind is that both prints are of the same document -- the only change being how densely placed the information is printed.

On a pixel-based screen, each pixel is mapped 1:1 with the display. If the display's DPI (how many pixels are in a 1" line on the screen -- more accurately PPI, or Pixels Per Inch) is very high, the image will just appear smaller. On a lower DPI screen, the same image will appear smaller.

This is why the developer guidelines recommend multiple versions of assets: one for xhdpi, one for hdpi, one for mdpi, and one for ldpi, with xhdpi being the largest pixel sized image, and therefore the highest quality.

这篇关于为什么在Android开发者网站的图标所有模板图像有爱和Photoshop下每英寸分辨率72像素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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