Skip to content

Commit 2a20c52

Browse files
authored
使用实际屏幕尺寸截图
1 parent 3e9bf56 commit 2a20c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ink Canvas/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6701,7 +6701,7 @@ private void BtnScreenshot_Click(object sender, RoutedEventArgs e)
67016701

67026702
private void SaveScreenShot(bool isHideNotification, string fileName = null)
67036703
{
6704-
System.Drawing.Rectangle rc = System.Windows.Forms.SystemInformation.VirtualScreen;
6704+
System.Drawing.Rectangle rc = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
67056705
var bitmap = new System.Drawing.Bitmap(rc.Width, rc.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
67066706

67076707
using (System.Drawing.Graphics memoryGrahics = System.Drawing.Graphics.FromImage(bitmap))

0 commit comments

Comments
 (0)