什么是DPI的BitmapSource.Create()方法的相关性? [英] What is the relevance of DPI in BitmapSource.Create() method?

查看:534
本文介绍了什么是DPI的BitmapSource.Create()方法的相关性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了 DPI 维基百科的文章,但它让我感到困惑,甚至更多...我不具有在图像上的任何DPI信息。 DPI什么我应该 BitmapSource.Create()使用,它是确定使用恒定一(七十二分之九十六?)和它真正的问题,如果我不打算打印图像?

i read the Wikipedia article on DPI, but it confused me even more... i don't have any DPI information on the image. What DPI should i use with BitmapSource.Create(), is it OK to use a constant one(96/72?) and does it really matter if i'm not going to be printing the image?

推荐答案

DPI不以任何方式影响一个位图的像素。图像的DPI只是连接是用来描述现实世界的测量多大的测量应该是每一个像素的元数据。

DPI does not affect the pixels of a bitmap in any way. The DPI of an image is just attached metadata that is a measurement used to describe how large in real-world measurements is each pixel supposed to be.

例如,你可以有两个图像这两者都代表一个8.5×11扫描一张纸。一种可能是从一个更高的分辨率的扫描仪以600dpi,因此像素的尺寸将在每英寸600点是5100x6600。就在同一张纸上可以用较低的分辨率扫描300 dpi的分辨率进行扫描,因此只会有2550X3300的分辨率。

For example, you can have two images which both represent an 8.5" x 11" scanned piece of paper. One might be from a higher resolution scanner at 600 dpi and therefore the dimensions of the pixels would be 5100x6600 at 600 dots per inch. That same piece of paper could be scanned by a lower resolution scanner at 300 DPI and therefore would only have a resolution of 2550x3300.

现在,让我们说你要同时显示的上并排屏幕侧这些图像进行比较的纸片。他们应该是在屏幕上的大小相同。最有可能的放大图像将被缩小,而不是所有的像素将是可见的。他们还在那里然而,如果你放大图像上你会看到更精细的质量。较低分辨率图像放大将导致显著降低品质。

Now let's say you want to display both of these images on the screen side by side to compare the pieces of paper. They should be the same size on your screen. Most likely the larger image would be scaled down and not all of the pixels would be visible. They are still there however, and if you zoom in on the image you'd see the finer quality. Zooming in on the lower resolution image would result in a significantly lower quality.

DPI是用来让你在屏幕上显示不同的图像,并让他们保持适当的尺寸比例对彼此。它也是打印的重要。

DPI is used to allow you to show various images on the screen and have them maintain proper size ratio to each other. It's also important for printing.

你应该用96默认DPI坚持,除非你有一个理由不规则。

As a rule you should stick with the default DPI of 96 unless you have a reason not to.

这篇关于什么是DPI的BitmapSource.Create()方法的相关性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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