188 references to new
System.Drawing.Common.Tests (183)
mono\System.Drawing\GraphicsTests.cs (8)
153rects = g.Clip.GetRegionScans(new Matrix()); 180_rects = g.Clip.GetRegionScans(new Matrix()); 207_rects = g.Clip.GetRegionScans(new Matrix()); 225_rects = g.Clip.GetRegionScans(new Matrix()); 244rects = g.Clip.GetRegionScans(new Matrix()); 256rects = g.Clip.GetRegionScans(new Matrix()); 268rects = g.Clip.GetRegionScans(new Matrix()); 471g.Transform = new Matrix();
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
1126using Matrix matrix = new(); 1139using Matrix matrix = new(); 1295using Matrix matrix = new(); 1305using Matrix matrix = new(); 1685AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix())); 1686AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix(), 0.67f)); 1705using Matrix matrix = new(); 1707gp.Widen(pen, new Matrix()); 1727using Matrix matrix = new();
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
596AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new Matrix()); 705Matrix matrix = new(); 729AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix())); 730AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(), MatrixOrder.Prepend));
System\Drawing\Drawing2D\MatrixTests.Core.cs (1)
29using Matrix matrix = new();
System\Drawing\Drawing2D\MatrixTests.cs (41)
34Matrix matrix = new(); 42using Matrix matrix = new(); 175yield return new object[] { new Matrix(), new Matrix(1, 0, 0, 1, 0, 0), true }; 176yield return new object[] { new Matrix(), new Matrix(123, 24, 82, 16, 47, 30), false }; 177yield return new object[] { new Matrix(), new Matrix(1.1f, 0.1f, -0.1f, 0.9f, 0, 0), false }; 178yield return new object[] { new Matrix(), new Matrix(1.01f, 0.01f, -0.01f, 0.99f, 0, 0), false }; 179yield return new object[] { new Matrix(), new Matrix(1.001f, 0.001f, -0.001f, 0.999f, 0, 0), false }; 180yield return new object[] { new Matrix(), new Matrix(1.0001f, 0.0001f, -0.0001f, 0.9999f, 0, 0), false }; 181yield return new object[] { new Matrix(), new Matrix(1.0009f, 0.0009f, -0.0009f, 0.99995f, 0, 0), false }; 194yield return new object[] { new Matrix(), null, false }; 195yield return new object[] { new Matrix(), new(), false }; 216AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Equals(new Matrix())); 222AssertExtensions.Throws<ArgumentException>(null, () => new Matrix().Equals(CreateDisposedMatrix())); 235yield return new object[] { new Matrix(), new float[] { 1, 0, 0, 1, 0, 0 } }; 292yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(), MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } }; 293yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(), MatrixOrder.Append, new float[] { 10, 20, 30, 40, 50, 60 } }; 336using Matrix matrix = new(); 346using Matrix matrix = new(); 347using Matrix other = new(); 356using Matrix other = new(); 366using Matrix matrix = new(); 374using Matrix matrix = new(); 404yield return new object[] { new Matrix(), 45, PointF.Empty, MatrixOrder.Prepend, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false }; 405yield return new object[] { new Matrix(), 45, PointF.Empty, MatrixOrder.Append, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false }; 407using (Matrix rotated45 = new()) 414yield return new object[] { new Matrix(), 90, PointF.Empty, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false }; 415yield return new object[] { new Matrix(), 90, PointF.Empty, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false }; 417using (Matrix rotated90 = new()) 485using Matrix matrix = new(); 503using Matrix matrix = new(); 560using Matrix matrix = new(); 626using Matrix matrix = new(); 644yield return new object[] { new Matrix(), 5, 10, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } }; 645yield return new object[] { new Matrix(), 5, 10, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 5, 10 } }; 683using Matrix matrix = new(); 699yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } }; 729using Matrix matrix = new(); 737using Matrix matrix = new(); 754yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } }; 795using Matrix matrix = new(); 804using Matrix matrix = new();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
643using Matrix matrix = new(); 741Matrix matrix = new();
System\Drawing\Graphics_GetContextTests.cs (5)
48using Matrix initialTransform = new(); 64using Matrix initialTransform = new(); 82using Matrix initialTransform = new(); 100using Matrix initialTransform = new(); 121using Matrix initialTransform = new();
System\Drawing\GraphicsTests.Core.cs (1)
63using (Matrix matrix = new())
System\Drawing\GraphicsTests.cs (9)
1070using Matrix matrix = new(); 1100Matrix matrix = new(); 1120using Matrix matrix = new(); 1137using Matrix matrix = new(); 1231Matrix matrix = new(); 1257using Matrix matrix = new(); 1266using Matrix matrix = new(); 1283using Matrix matrix = new(); 2817Assert.Equal(new Matrix(), graphics.Transform);
System\Drawing\PenTests.cs (20)
757yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend }; 758yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Append }; 819Matrix matrix = new(); 836using Matrix matrix = new(); 847using Matrix matrix = new(); 861using Matrix matrix = new(); 874using Matrix matrix = new(); 883yield return new object[] { new Matrix(), 90, MatrixOrder.Prepend }; 884yield return new object[] { new Matrix(), 90, MatrixOrder.Append }; 931using Matrix matrix = new(); 941yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Prepend }; 942yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Append }; 991using Matrix matrix = new(); 1096Matrix matrix = new(); 1106using Matrix matrix = new(); 1116yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Prepend }; 1117yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Append }; 1166using Matrix matrix = new(); 1223using (Matrix matrix = new()) 1225Assert.Equal(new Matrix(), pen.Transform);
System\Drawing\RegionTests.cs (57)
94using Matrix matrix = new(); 171using Matrix matrix = new(); 186using Matrix matrix = new(); 238using Matrix matrix = new(); 263using (Matrix matrix = new()) 347using Matrix matrix = new(); 357using Matrix matrix = new(); 372using Matrix matrix = new(); 389using Matrix matrix = new(); 433using Matrix matrix = new(); 449using Matrix matrix = new(); 467using Matrix matrix = new(); 481using Matrix matrix = new(); 783using Matrix matrix = new(); 793using Matrix matrix = new(); 804using Matrix matrix = new(); 840using Matrix matrix = new(); 856using Matrix matrix = new(); 874using Matrix matrix = new(); 1009using Matrix matrix = new(); 1011using Matrix emptyMatrix = new(); 1029using Matrix matrix = new(); 1037Matrix matrix = new(); 1046using Matrix matrix = new(); 1126using Matrix matrix = new(); 1135using Matrix matrix = new(); 1173using Matrix matrix = new(); 1182using Matrix matrix = new(); 1201using Matrix matrix = new(); 1210using Matrix matrix = new(); 1231using Matrix matrix = new(); 1447using (Matrix matrix = new()) 1688using Matrix matrix = new(); 1698using Matrix matrix = new(); 1736using Matrix matrix = new(); 1752using Matrix matrix = new(); 1770using Matrix matrix = new(); 1808using Matrix matrix = new(); 1817using Matrix matrix = new(); 1818using Matrix emptyMatrix = new(); 1834using Matrix matrix = new(); 1835using Matrix emptyMatrix = new(); 1849using Matrix matrix = new(); 1850using Matrix emptyMatrix = new(); 1864using Matrix emptyMatrix = new(); 1882using Matrix matrix = new(); 1893using Matrix matrix = new(); 1902using Matrix matrix = new(); 1916using Matrix matrix = new(); 1925using Matrix matrix = new(); 1937using Matrix matrix = new(); 1954using Matrix matrix = new(); 2040using Matrix matrix = new(); 2050using Matrix matrix = new(); 2094using Matrix matrix = new(); 2110using Matrix matrix = new(); 2128using Matrix matrix = new();
System\Drawing\SystemPensTest.cs (1)
75using (Matrix matrix = new())
System\Drawing\TextureBrushTests.cs (25)
24using Matrix matrix = new(); 65using Matrix matrix = new(); 92using Matrix matrix = new(); 113using Matrix matrix = new(); 146using Matrix matrix = new(); 167using Matrix matrix = new(); 201using Matrix matrix = new(); 223using Matrix matrix = new(); 333yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend }; 334yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.Append }; 395Matrix matrix = new(); 412using Matrix matrix = new(); 423using Matrix matrix = new(); 437using Matrix matrix = new(); 458yield return new object[] { new Matrix(), 90, MatrixOrder.Prepend }; 459yield return new object[] { new Matrix(), 90, MatrixOrder.Append }; 510using Matrix matrix = new(); 520yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Prepend }; 521yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Append }; 574using Matrix matrix = new(); 605Matrix matrix = new(); 615using Matrix matrix = new(); 625yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Prepend }; 626yield return new object[] { new Matrix(), 2, 3, MatrixOrder.Append }; 679using Matrix matrix = new();
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
225Matrix m = new();
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
22Matrix transform = new(); 105Matrix transform = new();
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
756using Matrix matrix = new(); 804using Matrix matrix = new();