5 references to new
System.Drawing.Common (2)
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
55: this(rect, color1, color2, angle, isAngleScaleable: false) 83: this((RectangleF)rect, color1, color2, angle, isAngleScaleable)
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
188using LinearGradientBrush brush = new((RectangleF)rectangle, color1, color2, angle, isAngleScalable); 209AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true)); 220AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true));