5 references to new
System.Drawing.Common (2)
System\Drawing\Drawing2D\LinearGradientBrush.cs (1)
228ColorBlend blend = new(count);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
277ColorBlend blend = new(count);
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\ColorBlendTests.cs (3)
21ColorBlend blend = new(count); 29Assert.Throws<OverflowException>(() => new ColorBlend(-1)); 35Assert.Throws<OutOfMemoryException>(() => new ColorBlend(int.MaxValue));