On Windows PC displays, I don't mean Windows CE or PDAs, etc.
Explanation
Some of the people below mistakenly thought that I was asking what DPI (dots per inch) were on monitors. What I am asking is the value for LogPixelsX in the GetCaps API call :
LOGPIXELSX Number of pixels per logical inch of screen width.
In the examples I saw, it is set to 88, regardless of the DPI of the screen. It seems to be a constant like Magic Number.
In a related Question, I use GetDeviceCaps to calculate the current DPI on-screen font. All the code samples I found have:
Const LOGPIXELSX = 88
Is it universally the same for all monitors (even widescreen and regular monitors)? And if not, how can I find it for the current display. (MSDN indicates that it is the same for all monitors on a specific computer.
In a system with multiple display monitors, this value is the same for all monitors.
windows dpi
Clay nichols
source share