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

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

 

posted @ 2023-09-08 14:42  吃奶嘴的路飞  阅读(174)  评论(0编辑  收藏  举报