Are height & width measured the same on all monitors?
开发者_JAVA百科Is Width = 103; the same on all monitors ?
No. It's a width in pixels that are sort-of device independent, but pretty obviously such device independence doesn't magically apply if you mirror your laptop's screen onto a video projector showing a 60ft wide picture.
You will not find a way to put things onto monitors at an exact physical size, without getting the user to run some kind of calibration process for their specific setup.
It represents the pixels. So if you do have a higher resolution, it is smaller. Even on the same monitor.
WPF units are based on 96DPI (dots/pixels per inch) so 103 means 1.072" or 2.72cm
This value is then multiplied with the monitors DPI to find out how many pixels it should be.
If the monitor is 96 DPI it will be 103 pixels but if the monitor is 150 DPI it will be 160 pixels.
This is the theory but in practice it doesn't work.
DPI is a user setting and not a monitor setting (at least in windows)! i.e. a user will have the same DPI setting regardless of monitor used. My laptop is 150 DPI and my desk monitors are around 100 DPI. I keep DPI set to around 110 since changing DPI requires logoff.
The DPI dialog in windows is sort of backwards since it talks about text size. (In my opinion you increase textsize with a larger font not by fooling the system about your monitor size and resolution.) The effect is that users set the DPI based on the text size they want not the monitor's physical properties.
If you want to calibrate your DPI settings you can use the "Custom DPI setting".
The idea is that you hold a ruler against the monitor and drags the on-screen ruler until they match in size.
Having a correct DPI setting will give you images and text with the same size on the monitor aa on paper.
精彩评论