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