摘要: 方法一:用ManagementClass来获取。需要引入System.Management.dll; using (ManagementClass mc = new ManagementClass("Win32_DesktopMonitor")) { using (ManagementObjectCollection moc = mc.GetInstances()) { int PixelsPerXLogicalInch = 0; // dpi for x ... 阅读全文
posted @ 2013-07-12 20:21 Lee's Blog 阅读(14105) 评论(1) 推荐(3) 编辑