25 references to CompositingMode
System.Drawing (1)
System.Drawing.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.CompositingMode))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
436public System.Drawing.Drawing2D.CompositingMode CompositingMode { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (23)
mono\System.Drawing\GraphicsTests.cs (13)
109Assert.Equal(CompositingMode.SourceOver, g.CompositingMode); 125g.CompositingMode = CompositingMode.SourceCopy; 136Assert.Equal(CompositingMode.SourceCopy, g.CompositingMode); 288g.CompositingMode = CompositingMode.SourceCopy; 301g.CompositingMode = CompositingMode.SourceOver; 314Assert.Equal(CompositingMode.SourceCopy, g.CompositingMode); 328Assert.Equal(CompositingMode.SourceOver, g.CompositingMode); 910AssertEquals(message + ".CompositingMode", CompositingMode.SourceOver, g.CompositingMode); 925AssertEquals(message + ".CompositingMode", CompositingMode.SourceCopy, g.CompositingMode); 958g.CompositingMode = CompositingMode.SourceCopy; 991g.CompositingMode = CompositingMode.SourceCopy; 1025g.CompositingMode = CompositingMode.SourceCopy; 1106g.CompositingMode = CompositingMode.SourceCopy;
System\Drawing\GraphicsTests.cs (10)
300yield return new object[] { CompositingMode.SourceCopy, Color.FromArgb(160, 255, 255, 255) }; 301yield return new object[] { CompositingMode.SourceOver, Color.FromArgb(220, 185, 185, 185) }; 306public void CompositingMode_Set_GetReturnsExpected(CompositingMode mode, Color expectedOverlap) 333[InlineData(CompositingMode.SourceOver - 1)] 334[InlineData(CompositingMode.SourceCopy + 1)] 335public void CompositingMode_SetInvalid_ThrowsInvalidEnumArgumentException(CompositingMode compositingMode) 351Assert.Throws<InvalidOperationException>(() => graphics.CompositingMode = CompositingMode.SourceCopy); 367AssertExtensions.Throws<ArgumentException>(null, () => graphics.CompositingMode = CompositingMode.SourceCopy); 2793graphics.CompositingMode = CompositingMode.SourceCopy; 2803Assert.Equal(CompositingMode.SourceOver, graphics.CompositingMode);