像素与毫米之间的一致度 [英] Accordance between pixel and mm
问题描述
我正在做
PhysicalParameters()
{
IntPtr DeskTopHWND = GetDesktopWindow();
IntPtr HDC = GetDC(DeskTopHWND);
int mmX = GetDeviceCaps(HDC, HORZSIZE);
int mmY = GetDeviceCaps(HDC, VERTSIZE);
int pxX = GetDeviceCaps(HDC, HORZRES);
int pxY = GetDeviceCaps(HDC, VERTRES);
ReleaseDC(DeskTopHWND, HDC);
double CoeffPIX_MM_X = 1.0 * mmX / pxX;
double CoeffPIX_MM_Y = 1.0 * mmY / pxY;
}
两者的结果均为0.25
The result for both is 0.25
但是我所看到的(MS Word的WysiWyg)应该约为0.27
But what I see (MS Word' WysiWyg ) it should be about 0.27
请解释一下主题.
推荐答案
典型的LCD监视器具有每英寸96像素的密度.这表示像素大小为0.0104167英寸或0.265毫米.
Typical LCD monitors have a 96 pixel-per-inch density. This translates to a pixel size of 0.0104167 inch or 0.265 mm.
然而,制造技术差异很大,因此像素尺寸不是固定的.不同的显示器和设备将具有不同的间距和密度.因此,简短的答案是像素与度量单位之间没有关联.像素大小是您(或设备制造商)想要的大小.
However manufacturing techniques differ drastically, and therefore pixel sizes are not fixed. Different monitors and devices will have difference pitches and densities. So the short answer is there is no correlation between pixels and a unit of measure. A pixel is whatever size you (or a manufacturer of a device) want it to be.
参考文献:
- http://en.wikipedia.org/wiki/Pixel_density
- http://en.wikipedia.org/wiki/Pixel
- http://en.wikipedia.org/wiki/Display_resolution
- http://en.wikipedia.org/wiki/Pixel_density
- http://en.wikipedia.org/wiki/Pixel
- http://en.wikipedia.org/wiki/Display_resolution
这篇关于像素与毫米之间的一致度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!