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)
107Assert.Equal(CompositingMode.SourceOver, g.CompositingMode); 123g.CompositingMode = CompositingMode.SourceCopy; 134Assert.Equal(CompositingMode.SourceCopy, g.CompositingMode); 286g.CompositingMode = CompositingMode.SourceCopy; 299g.CompositingMode = CompositingMode.SourceOver; 312Assert.Equal(CompositingMode.SourceCopy, g.CompositingMode); 326Assert.Equal(CompositingMode.SourceOver, g.CompositingMode); 908AssertEquals(message + ".CompositingMode", CompositingMode.SourceOver, g.CompositingMode); 923AssertEquals(message + ".CompositingMode", CompositingMode.SourceCopy, g.CompositingMode); 956g.CompositingMode = CompositingMode.SourceCopy; 989g.CompositingMode = CompositingMode.SourceCopy; 1023g.CompositingMode = CompositingMode.SourceCopy; 1104g.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);