48 references to CopyPixelOperation
System.Drawing (1)
System.Drawing.cs (1)
18
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
CopyPixelOperation
))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
458
public void CopyFromScreen(System.Drawing.Point upperLeftSource, System.Drawing.Point upperLeftDestination, System.Drawing.Size blockRegionSize, System.Drawing.
CopyPixelOperation
copyPixelOperation) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
460
public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, System.Drawing.Size blockRegionSize, System.Drawing.
CopyPixelOperation
copyPixelOperation) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (44)
System\Drawing\GraphicsTests.cs (44)
1582
yield return new object[] {
CopyPixelOperation
.NoMirrorBitmap };
1583
yield return new object[] {
CopyPixelOperation
.Blackness };
1584
yield return new object[] {
CopyPixelOperation
.NotSourceErase };
1585
yield return new object[] {
CopyPixelOperation
.NotSourceCopy };
1586
yield return new object[] {
CopyPixelOperation
.SourceErase };
1587
yield return new object[] {
CopyPixelOperation
.DestinationInvert };
1588
yield return new object[] {
CopyPixelOperation
.PatInvert };
1589
yield return new object[] {
CopyPixelOperation
.SourceInvert };
1590
yield return new object[] {
CopyPixelOperation
.SourceAnd };
1591
yield return new object[] {
CopyPixelOperation
.MergePaint };
1592
yield return new object[] {
CopyPixelOperation
.MergeCopy };
1593
yield return new object[] {
CopyPixelOperation
.SourceCopy };
1594
yield return new object[] {
CopyPixelOperation
.SourcePaint };
1595
yield return new object[] {
CopyPixelOperation
.SourceCopy };
1596
yield return new object[] {
CopyPixelOperation
.PatCopy };
1597
yield return new object[] {
CopyPixelOperation
.PatPaint };
1598
yield return new object[] {
CopyPixelOperation
.Whiteness };
1599
yield return new object[] {
CopyPixelOperation
.CaptureBlt };
1600
yield return new object[] {
CopyPixelOperation
.CaptureBlt };
1605
public void CopyFromScreen_IntsAndValidCopyPixelOperation_Success(
CopyPixelOperation
copyPixelOperation)
1616
public void CopyFromScreen_PointsAndValidCopyPixelOperation_Success(
CopyPixelOperation
copyPixelOperation)
1626
[InlineData(
CopyPixelOperation
.NoMirrorBitmap + 1)]
1627
[InlineData(
CopyPixelOperation
.Blackness - 1)]
1628
[InlineData(
CopyPixelOperation
.NotSourceErase - 1)]
1629
[InlineData(
CopyPixelOperation
.NotSourceCopy - 1)]
1630
[InlineData(
CopyPixelOperation
.SourceErase - 1)]
1631
[InlineData(
CopyPixelOperation
.DestinationInvert - 1)]
1632
[InlineData(
CopyPixelOperation
.PatInvert - 1)]
1633
[InlineData(
CopyPixelOperation
.SourceInvert - 1)]
1634
[InlineData(
CopyPixelOperation
.SourceAnd - 1)]
1635
[InlineData(
CopyPixelOperation
.MergePaint - 1)]
1636
[InlineData(
CopyPixelOperation
.MergeCopy - 1)]
1637
[InlineData(
CopyPixelOperation
.SourceCopy - 1)]
1638
[InlineData(
CopyPixelOperation
.SourcePaint - 1)]
1639
[InlineData(
CopyPixelOperation
.PatCopy - 1)]
1640
[InlineData(
CopyPixelOperation
.PatPaint - 1)]
1641
[InlineData(
CopyPixelOperation
.Whiteness - 1)]
1642
[InlineData(
CopyPixelOperation
.CaptureBlt - 1)]
1643
[InlineData(
CopyPixelOperation
.CaptureBlt + 1)]
1644
public void CopyFromScreen_InvalidCopyPixelOperation_ThrowsInvalidEnumArgumentException(
CopyPixelOperation
copyPixelOperation)
1661
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty,
CopyPixelOperation
.DestinationInvert));
1663
Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty,
CopyPixelOperation
.DestinationInvert));
1679
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty,
CopyPixelOperation
.MergeCopy));
1681
AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty,
CopyPixelOperation
.MergeCopy));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
71
copyPixelOperation:
CopyPixelOperation
.SourceCopy);