Home > Net >  Get extension screen screen zoom
Get extension screen screen zoom

Time:11-04

Premise: control panel set in the main screen zoom 125%, vice screen zoom 175%

1. Use GetDpiForMonitor to obtain, obtaining the results of the vice screen zoom=125%, and the actual values are not consistent;
2. Use the Screen Width 1920/System. Windows. Forms. Screen. AllScreens [1]. The Bounds. Width calculated the actual value is 140%, and the actual is different (home Screen zoom if is 100%, the deputy Screen calculation results is 175%, and the actual value);

How to receive the screen dpi correctly?

CodePudding user response:

Urgent need to answer
  •  Tags:  
  • C#
  • Related