自动缩放模式全部改成不缩放
This commit is contained in:
1 parent
39cfc15188
commit
edb79b9abf
54 files changed
+123
-117
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user