自动缩放模式全部改成不缩放

This commit is contained in:
wule committed 2025-07-18 19:13:56 +08:00
1 parent 39cfc15188
commit edb79b9abf
54 files changed
+123 -117

No files matched your search

+6
View File
@@ -56,6 +56,12 @@ namespace TemuKJD
}
}));
});
using (Graphics graphics = Graphics.FromHwnd(IntPtr.Zero))
{
float dpi = graphics.DpiX; // 或者使用 graphics.DpiY 获取垂直方向的DPI
Console.WriteLine("Screen DPI: " + dpi);
}
}
private void InitForm_FormClosed(object sender, FormClosedEventArgs e)