5 references to new
System.Drawing.Common (2)
System\Drawing\Drawing2D\LinearGradientBrush.cs (1)
170Blend blend = new(count);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
217Blend blend = new(factors.Length)
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\BlendTests.cs (3)
21Blend blend = new(count); 29Assert.Throws<OverflowException>(() => new Blend(-1)); 35Assert.Throws<OutOfMemoryException>(() => new Blend(int.MaxValue));