0
点赞
收藏
分享

微信扫一扫

获取当前屏幕的缩放比例,dpi

夕阳孤草 2023-10-24 阅读 16

Graphics currentGraphics = Graphics.FromHwnd(new WindowInteropHelper(Window.GetWindow(this)).Handle);
double dpixRatio = currentGraphics.DpiX / 96;

 



举报

相关推荐

0 条评论