关于显示器的物理尺寸,屏幕分辨率,dpi [英] About monitor physical size, screen resolution, dpi

查看:314
本文介绍了关于显示器的物理尺寸,屏幕分辨率,dpi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的笔记本电脑的纬度为5420.

I have a dell laptop latitude 5420.

内置显示器的宽度为12.20英寸,高度为 6.69 6,86英寸.

The built-in monitor has a width of 12.20 inches and a height of 6.69 6,86 inches.

OS是Windows7.屏幕分辨率设置为1600 x 900(首选分辨率).

OS is Windows7. The screen resolution is set to 1600 by 900 (prefered resolution).

此外,Windows7还配置了100%的设置自定义文本大小(DPI)"(9磅Segoe UI,每英寸96像素).我认为这意味着Windows7认为我的1英寸显示器使用96像素.

Additionally Windows7 is configured with a "Set custom text size (DPI)" of 100% (9 point Segoe UI at 96 pixels per inch). I think this means windows7 thinks 1 inch of my monitor uses 96 pixels.

如果我将1600像素除以12.20英寸(或900除以6,86),则结果约为131,1.

If I divide 1600 pixels by 12.20 inches (or 900 by 6,86) it results around 131,1.

系统的预期DPI应该是多少?水平的?垂直的?在这种配置下,正方形在我的屏幕上会被视为矩形吗?我想念什么吗?

原始问题现在毫无意义.分辨率和物理尺寸现在遵循相同的16:9格式.

Original question has no sense now. Resolution and physical size follows the same 16:9 format now.

现在让我感到困扰的问题是,现实中的屏幕似乎每英寸大约有131像素,但OS认为它的屏幕只有每英寸96像素.如果我告诉程序写一条1英寸的线,那么屏幕上将打印多少像素?是96还是131?如果我告诉程序要写入131像素,然后在屏幕上放一把尺子,我会测量什么?

Now the question it bugs me is it seems the screen in reality has around 131 pixels per inch, but OS thinks it has 96 pixels by inch. If I tell a program to write a line of 1 inch how many pixels will be printed on the screen? 96 or 131? If I tell a program to write 131 pixels, and I put a ruler on the screen what would I measure?

需要修改的原因:很抱歉给您带来不便.我用尺子重新检查了测量值,但垂直测量值却出错了.

Reason for edit: Sorry for any incovenience. I recheck the measures using a ruler and I did an error in the vertical measure.

推荐答案

GetDeviceCaps is meant to return this information (HORZSIZE/VERTSIZE, LOGPIXELSX/LOGPIXELSY). However,

GetDeviceCaps报告显示驱动程序提供的信息.如果显示驱动程序拒绝报告任何信息,则GetDeviceCaps将基于固定的计算来计算信息.如果显示驱动程序报告无效信息,则GetDeviceCaps返回无效信息.另外,如果显示驱动程序拒绝报告信息,则GetDeviceCaps可能会计算不正确的信息,因为它假定使用固定DPI(96 DPI)或固定大小(取决于显示驱动器提供和未提供的信息). 不幸的是,在Windows显示驱动程序模型(WDDM)中实现的显示驱动程序(在Windows Vista中引入)导致GDI无法获取信息,因此GetDeviceCaps必须始终计算信息.

GetDeviceCaps reports info that the display driver provides. If the display driver declines to report any info, GetDeviceCaps calculates the info based on fixed calculations. If the display driver reports invalid info, GetDeviceCaps returns the invalid info. Also, if the display driver declines to report info, GetDeviceCaps might calculate incorrect info because it assumes either fixed DPI (96 DPI) or a fixed size (depending on the info that the display driver did and didn’t provide). Unfortunately, a display driver that is implemented to the Windows Display Driver Model (WDDM) (introduced in Windows Vista) causes GDI to not get the info, so GetDeviceCaps must always calculate the info.

对于我的Windows 7笔记本电脑,HORZSIZEVERTSIZE完全错误.

For my Windows 7 laptop, HORZSIZE and VERTSIZE are completely wrong.

这篇关于关于显示器的物理尺寸,屏幕分辨率,dpi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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