I understand that several months have passed, but reading a book about WPF, I came across an answer:
Using the standard Windows DPI setting (96 dpi), each device-independent block corresponds to one real physical pixel.
[Physical Unit Size] = [Device-Independent Unit Size] x [System DPI]
= 1/96 inch x 96 dpi
= 1 pixel
Therefore, 96 pixels to make an inch through the DPI settings of the Windows system.
However, in reality it depends on your screen size.
19- LDC, 1600 x 1200, , :
[Screen DPI] = Math.Sqrt(Math.Pow(1600, 2) + Math.Pow(1200, 2)) / 19
, , "" :
public static double ScreenDPI(int monitorSize, int resolutionWidth, int resolutionHeight) {
if (0 < monitorSize) {
double screenDpi = Math.Sqrt(Math.Pow(resolutionWidth, 2) + Math.Pow(resolutionHeight, 2)) / monitorSize;
return screenDpi;
}
return 0;
}
, .