7 references to CopyFromScreen
System.Drawing.Common (2)
System\Drawing\Graphics.cs (2)
2440
CopyFromScreen
(sourceX, sourceY, destinationX, destinationY, blockRegionSize, CopyPixelOperation.SourceCopy);
2447
CopyFromScreen
(upperLeftSource.X, upperLeftSource.Y, upperLeftDestination.X, upperLeftDestination.Y, blockRegionSize, copyPixelOperation);
System.Drawing.Common.Tests (4)
System\Drawing\GraphicsTests.cs (4)
1611
graphics.
CopyFromScreen
(0, 0, 0, 0, new Size(1, 1), copyPixelOperation);
1648
Assert.ThrowsAny<ArgumentException>(() => graphics.
CopyFromScreen
(1, 2, 3, 4, Size.Empty, copyPixelOperation));
1661
Assert.Throws<InvalidOperationException>(() => graphics.
CopyFromScreen
(0, 0, 0, 0, Size.Empty, CopyPixelOperation.DestinationInvert));
1679
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
CopyFromScreen
(0, 0, 0, 0, Size.Empty, CopyPixelOperation.MergeCopy));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
65
graphics.
CopyFromScreen
(