We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2809c commit eae83afCopy full SHA for eae83af
ScreenTask/frmMain.cs
@@ -263,12 +263,13 @@ private void TakeScreenshot(bool captureMouse)
263
bmp = null;
264
return;
265
}
266
- Rectangle bounds = Screen.GetBounds(Point.Empty);
+
267
+ Rectangle bounds = Screen.AllScreens[comboScreens.SelectedIndex].Bounds;
268
using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
269
{
270
using (Graphics g = Graphics.FromImage(bitmap))
271
- g.CopyFromScreen(Point.Empty, Point.Empty, bounds.Size);
272
+ g.CopyFromScreen(new Point(bounds.X,bounds.Y), Point.Empty, bounds.Size);
273
274
rwl.AcquireWriterLock(Timeout.Infinite);
275
bitmap.Save(Application.StartupPath + "/WebServer" + "/ScreenTask.jpg", ImageFormat.Jpeg);
0 commit comments