Browse Source

zhao:获取屏幕缩放后的大小

tags/录制修改前
耀 4 years ago
parent
commit
d0f35786ca
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Common/system/PrimaryScreen.cs

+ 9
- 0
Common/system/PrimaryScreen.cs View File

137
                 return ScaleY;
137
                 return ScaleY;
138
             }
138
             }
139
         }
139
         }
140
+
141
+        /// <summary>
142
+        /// 缩放后的大小
143
+        /// </summary>
144
+        /// <returns></returns>
145
+        public static SizeF ScaleScreenSize()
146
+        {
147
+            return new SizeF(((float)DESKTOP.Width) / (DpiX / 96f), ((float)DESKTOP.Height) / (DpiY / 96f));
148
+        }
140
         #endregion
149
         #endregion
141
     }
150
     }
142
 }
151
 }

Loading…
Cancel
Save