Method Dpi.OfScreen
Overload
Gets DPI of a screen.
public static int OfScreen(nint hMonitor, bool supportWin81 = false)
Parameters
|
hMonitor (nint)
Native screen handle ( |
|
supportWin81 (bool)
Support Windows 8.1 and later. If |
Returns
|
int
Dpi.System if fails or if not supported on this Windows version. |
Remarks
Uses API GetDpiForMonitor.