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)
458public 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); } 460public 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)
1582yield return new object[] { CopyPixelOperation.NoMirrorBitmap }; 1583yield return new object[] { CopyPixelOperation.Blackness }; 1584yield return new object[] { CopyPixelOperation.NotSourceErase }; 1585yield return new object[] { CopyPixelOperation.NotSourceCopy }; 1586yield return new object[] { CopyPixelOperation.SourceErase }; 1587yield return new object[] { CopyPixelOperation.DestinationInvert }; 1588yield return new object[] { CopyPixelOperation.PatInvert }; 1589yield return new object[] { CopyPixelOperation.SourceInvert }; 1590yield return new object[] { CopyPixelOperation.SourceAnd }; 1591yield return new object[] { CopyPixelOperation.MergePaint }; 1592yield return new object[] { CopyPixelOperation.MergeCopy }; 1593yield return new object[] { CopyPixelOperation.SourceCopy }; 1594yield return new object[] { CopyPixelOperation.SourcePaint }; 1595yield return new object[] { CopyPixelOperation.SourceCopy }; 1596yield return new object[] { CopyPixelOperation.PatCopy }; 1597yield return new object[] { CopyPixelOperation.PatPaint }; 1598yield return new object[] { CopyPixelOperation.Whiteness }; 1599yield return new object[] { CopyPixelOperation.CaptureBlt }; 1600yield return new object[] { CopyPixelOperation.CaptureBlt }; 1605public void CopyFromScreen_IntsAndValidCopyPixelOperation_Success(CopyPixelOperation copyPixelOperation) 1616public 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)] 1644public void CopyFromScreen_InvalidCopyPixelOperation_ThrowsInvalidEnumArgumentException(CopyPixelOperation copyPixelOperation) 1661Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.DestinationInvert)); 1663Assert.Throws<InvalidOperationException>(() => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.DestinationInvert)); 1679AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.MergeCopy)); 1681AssertExtensions.Throws<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.MergeCopy));
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
71copyPixelOperation: CopyPixelOperation.SourceCopy);