如何获取当前屏幕的缩放比例
Tofloor
poster avatar
sd3252
deepin
2018-12-14 19:18
Author
程序需要获得屏幕的缩放比例来调整,请问如何获取,目前只有在deepin1:1的情况才能运行

Reply Favorite View the author
All Replies
avatar
许自强
deepin
2018-12-16 01:03
#1
这个应该可以用dde-api查吧,不过我不会。哈哈https://bbs.deepin.org/user/25870
Reply View the author
avatar
许自强
deepin
2018-12-16 02:44
#2
我发现了
  1. gsettings get com.deepin.xsettings scale-factor
Copy the Code
Reply View the author
avatar
sd3252
deepin
2018-12-21 21:30
#3

谢谢,,,,,,,,,,,,,,,
Reply View the author