Skip to content

Commit

Permalink
使用实际屏幕尺寸截图
Browse files Browse the repository at this point in the history
  • Loading branch information
clover-yan authored Nov 16, 2023
1 parent 3e9bf56 commit 2a20c52
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 @@ -6701,7 +6701,7 @@ private void BtnScreenshot_Click(object sender, RoutedEventArgs e)

private void SaveScreenShot(bool isHideNotification, string fileName = null)
{
System.Drawing.Rectangle rc = System.Windows.Forms.SystemInformation.VirtualScreen;
System.Drawing.Rectangle rc = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
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 2a20c52

Please sign in to comment.