摘要:
方法一:用ManagementClass来获取。需要引入System.Management.dll; using (ManagementClass mc = new ManagementClass("Win32_DesktopMonitor")) { using (ManagementObjectCollection moc = mc.GetInstances()) { int PixelsPerXLogicalInch = 0; // dpi for x ... 阅读全文