LDPI (Low Density Screen,120 DPI),其图标大小为 36 x 36 px.MDPI (Medium Density Screen, 160 DPI),其图标大小为 48 x 48 px.HDPI (High Density Screen, 240 DPI),其图标大小为 72 x 72 px.xhdpi (Extra-high density screen, 320 DPI),其图标大小为 96 x 96 px. xxhdpi (480dpi)其图标大小144x14
方法一:用ManagementClass来获取.需要引入System.Management.dll; using (ManagementClass mc = new ManagementClass("Win32_DesktopMonitor")) { using (ManagementObjectCollection moc = mc.GetInstances()) { ; // dpi for x ; // dpi for y foreach (ManagementObject ea
http://doc.qt.io/qt-5/highdpi.html Qt Support Ability to provide pixmaps or artwork for high resolution: see Drawing High Resolution Versions of Pixmaps and Images. Qt 5.4 introduces experimental support for scaling by by device pixel ratio similar t