Skip to content

Commit

Permalink
Revert "使用实际屏幕尺寸截图"
Browse files Browse the repository at this point in the history
This reverts commit 2a20c52.
  • Loading branch information
clover-yan committed Feb 8, 2024
1 parent 2f01cd5 commit 8136db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6728,7 +6728,7 @@ private void BtnScreenshot_Click(object sender, RoutedEventArgs e)

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

using (System.Drawing.Graphics memoryGrahics = System.Drawing.Graphics.FromImage(bitmap))
Expand Down

0 comments on commit 8136db7

Please sign in to comment.