437 instantiations of Matrix
System.Drawing.Common.Tests (431)
mono\System.Drawing\GraphicsTests.cs (16)
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()); 421using Matrix matrix = new(123, 24, 82, 16, 47, 30); 432using Matrix matrix = new(123, 24, 82, 16, 47, 30); 471g.Transform = new Matrix(); 514g.Transform = new Matrix(1, 0, 0, 1, 8, 8); 529g.Transform = new Matrix(0.5f, 0, 0, 0.25f, 0, 0); 545g.Transform = new Matrix(1, 0, 0, 1, 8, 8); 675g.Transform = new Matrix(1, 2, 3, 4, 5, 6); 685g.Transform = new Matrix(1, 2, 3, 4, 5, 6); 695g.Transform = new Matrix(1, 2, 3, 4, 5, 6);
System\Drawing\Drawing2D\GraphicsPathTests.cs (12)
1088using Matrix matrix = new(1f, 1f, 2f, 2f, 3f, 3f); 1102using Matrix matrix = new(1f, 1f, 2f, 2f, 3f, 3f); 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(); 1772using Matrix matrix = new(2, 0, 0, 2, 50, -50);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (8)
577using Matrix transform = new(1, 2, 3, 4, 5, 6); 596AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new Matrix()); 659using Matrix matrix = new(1, 2, 3, 4, 5, 6); 675using Matrix matrix = new(1, 2, 3, 4, 5, 6); 705Matrix matrix = new(); 718using Matrix matrix = new(123, 24, 82, 16, 47, 30); 729AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix())); 730AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(), MatrixOrder.Prepend));
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
15using Matrix matrix = new(matrix3X2); 29using Matrix matrix = new();
System\Drawing\Drawing2D\MatrixTests.cs (169)
34Matrix matrix = new(); 42using Matrix matrix = new(); 68using Matrix matrix = new(m11, m12, m21, m22, dx, dy); 107using Matrix matrix = new(rect, plgpnts); 119using Matrix matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray()); 130AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default(RectangleF), null)); 131AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default, null)); 140AssertExtensions.Throws<ArgumentException>(null, () => new Matrix(default, new PointF[length])); 141AssertExtensions.Throws<ArgumentException>(null, () => new Matrix(default, new Point[length])); 147Assert.Throws<OutOfMemoryException>(() => new Matrix(new Rectangle(1, 1, 0, 1), new Point[3])); 148Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 0, 1), new PointF[3])); 154Assert.Throws<OutOfMemoryException>(() => new Matrix(new Rectangle(1, 1, 1, 0), new Point[3])); 155Assert.Throws<OutOfMemoryException>(() => new Matrix(new RectangleF(1, 1, 1, 0), new PointF[3])); 161using Matrix matrix = new(1, 2, 3, 4, 5, 6); 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 }; 183Matrix matrix = new(1, 2, 3, 4, 5, 6); 186yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 5, 6), true }; 187yield return new object[] { matrix.Clone(), new Matrix(2, 2, 3, 4, 5, 6), false }; 188yield return new object[] { matrix.Clone(), new Matrix(1, 3, 3, 4, 5, 6), false }; 189yield return new object[] { matrix.Clone(), new Matrix(1, 2, 4, 4, 5, 6), false }; 190yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 5, 5, 6), false }; 191yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 6, 6), false }; 192yield return new object[] { matrix.Clone(), new Matrix(1, 2, 3, 4, 5, 7), 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())); 233yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new float[] { -2, 1, 1.5f, -0.5f, 1, -2 } }; 234yield return new object[] { new Matrix(1, 0, 0, 1, 8, 8), new float[] { 1, 0, 0, 1, -8, -8 } }; 235yield return new object[] { new Matrix(), new float[] { 1, 0, 0, 1, 0, 0 } }; 255using Matrix matrix1 = new(f, 2, 3, 4, 5, 6); 256using Matrix matrix2 = new(1, f, 3, 4, 5, 6); 257using Matrix matrix3 = new(1, 2, f, 4, 5, 6); 258using Matrix matrix4 = new(1, 2, 3, f, 5, 6); 259using Matrix matrix5 = new(1, 2, 3, 4, f, 6); 260using Matrix matrix6 = new(1, 2, 3, 4, 5, f); 289yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(10, 20, 30, 40, 50, 60), MatrixOrder.Prepend, new float[] { 700, 1000, 1500, 2200, 2350, 3460 } }; 290yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(10, 20, 30, 40, 50, 60), MatrixOrder.Append, new float[] { 700, 1000, 1500, 2200, 2350, 3460 } }; 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 } }; 295yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(0, 0, 0, 0, 0, 0), MatrixOrder.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } }; 296yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(0, 0, 0, 0, 0, 0), MatrixOrder.Append, new float[] { 0, 0, 0, 0, 0, 0 } }; 298yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(1, 1, 1, 1, 1, 1), MatrixOrder.Prepend, new float[] { 40, 60, 40, 60, 90, 120 } }; 299yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(1, 1, 1, 1, 1, 1), MatrixOrder.Append, new float[] { 30, 30, 70, 70, 111, 111 } }; 301yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN), MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } }; 302yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN), MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } }; 304yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), MatrixOrder.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } }; 305yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity), MatrixOrder.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } }; 307yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity), MatrixOrder.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } }; 308yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity), MatrixOrder.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } }; 310yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue), MatrixOrder.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } }; 311yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue), MatrixOrder.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } }; 336using Matrix matrix = new(); 346using Matrix matrix = new(); 347using Matrix other = new(); 356using Matrix other = new(); 366using Matrix matrix = new(); 374using Matrix matrix = new(); 382using Matrix matrix = new(1, 2, 3, 4, 5, 6); 398yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, PointF.Empty, MatrixOrder.Prepend, new float[] { -9.999996f, -19.9999943f, -30.0000019f, -40.0000038f, 50, 60 }, null, false }; 399yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, PointF.Empty, MatrixOrder.Append, new float[] { -9.999996f, -20, -30f, -40f, -50, -60 }, null, false }; 401yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 540, PointF.Empty, MatrixOrder.Prepend, new float[] { -9.999996f, -19.9999943f, -30.0000019f, -40.0000038f, 50, 60 }, null, false }; 402yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 540, PointF.Empty, MatrixOrder.Append, new float[] { -9.999996f, -20, -30f, -40f, -50, -60 }, null, false }; 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()) 424yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10), MatrixOrder.Prepend, new float[] { -10, -20, -30, -40, 850, 1260 }, null, false }; 425yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10), MatrixOrder.Append, new float[] { -10, -20, -30, -40, -30, -40 }, null, false }; 427yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, PointF.Empty, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false }; 428yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, PointF.Empty, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false }; 430yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, PointF.Empty, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false }; 431yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, PointF.Empty, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false }; 433yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, PointF.Empty, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false }; 434yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, PointF.Empty, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false }; 485using Matrix matrix = new(); 503using Matrix matrix = new(); 509yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } }; 510yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 20, 80, 60, 160, 100, 240 } }; 512yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0.5, 0.25, MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } }; 513yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0.5, 0.25, MatrixOrder.Append, new float[] { 10, 10, 60, 40, 25, 15 } }; 515yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } }; 516yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 0, 0, 0, 0, 0, 0 } }; 518yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } }; 519yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } }; 521yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -20, -40, -120, -160, 50, 60 } }; 522yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -20, -80, -60, -160, -100, -240 } }; 524yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 } }; 525yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } }; 527yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, 50, 60 } }; 528yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } }; 530yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, 50, 60 } }; 531yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } }; 533yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue, MatrixOrder.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, 50, 60 } }; 534yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue, MatrixOrder.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } }; 560using Matrix matrix = new(); 575yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 130, 180, 50, 80, 50, 60 } }; 576yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 50, 60, 110, 160, 170, 260 } }; 578yield return new object[] { new Matrix(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Prepend, new float[] { 185, 43, 59, 32, 2, 1 } }; 579yield return new object[] { new Matrix(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Append, new float[] { 35, 103, 29, 182, 12, 41 } }; 581yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } }; 582yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } }; 584yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 140, 200, 140, 200, 50, 60 } }; 585yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 60, 60, 280, 280, 110, 110 } }; 587yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -110, -140, 10, 0, 50, 60 } }; 588yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -30, -20, -50, -80, -70, -140 } }; 590yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 } }; 591yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } }; 593yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, 50, 60 } }; 594yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } }; 596yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, 50, 60 } }; 597yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } }; 599yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue, MatrixOrder.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, 50, 60 } }; 600yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue, MatrixOrder.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } }; 626using Matrix matrix = new(); 641yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Prepend, new float[] { 2, 4, 6, 8, 80, 112 } }; 642yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Append, new float[] { 2, 4, 6, 8, 15, 22 } }; 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 } }; 647yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NaN, float.NaN, MatrixOrder.Prepend, new float[] { 1, 2, 3, 4, float.NaN, float.NaN } }; 648yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NaN, float.NaN, MatrixOrder.Append, new float[] { 1, 2, 3, 4, float.NaN, float.NaN } }; 650yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Prepend, new float[] { 1, 2, 3, 4, float.PositiveInfinity, float.PositiveInfinity } }; 651yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.PositiveInfinity, float.PositiveInfinity, MatrixOrder.Append, new float[] { 1, 2, 3, 4, float.PositiveInfinity, float.PositiveInfinity } }; 653yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Prepend, new float[] { 1, 2, 3, 4, float.NegativeInfinity, float.NegativeInfinity } }; 654yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NegativeInfinity, float.NegativeInfinity, MatrixOrder.Append, new float[] { 1, 2, 3, 4, float.NegativeInfinity, float.NegativeInfinity } }; 656yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.MaxValue, float.MaxValue, MatrixOrder.Prepend, new float[] { 1, 2, 3, 4, float.MaxValue, float.MaxValue } }; 657yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.MaxValue, float.MaxValue, MatrixOrder.Append, new float[] { 1, 2, 3, 4, float.MaxValue, float.MaxValue } }; 683using Matrix matrix = new(); 698yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(38, 52), new(66, 92) } }; 699yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } }; 700yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[1], new Point[] { new(10, 12) } }; 729using Matrix matrix = new(); 737using Matrix matrix = new(); 753yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(28, 40), new(56, 80) } }; 754yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } }; 755yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[1], new Point[1] }; 795using Matrix matrix = new(); 804using Matrix matrix = new();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (20)
632using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 633using Matrix matrix = new(1, 0, 0, 1, 1, 1); 643using Matrix matrix = new(); 668using Matrix nonInvertible = new(123, 24, 82, 16, 47, 30); 676using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 677using Matrix matrix = new(1, 0, 0, 1, 1, 1); 698using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 699using Matrix matrix = new(1, 0, 0, 1, 1, 1); 711using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 712using Matrix matrix = new(1, 0, 0, 1, 1, 1); 721using Matrix matrix = new(1, 0, 0, 1, 1, 1); 741Matrix matrix = new(); 754using Matrix matrix = new(1, 1, 1, 1, 1, 1); 762using Matrix nonInvertible = new(123, 24, 82, 16, 47, 30); 771using Matrix matrix = new(1, 0, 0, 1, 0, 0); 783using Matrix matrix = new(1, 0, 0, 1, 0, 0); 809using Matrix matrix = new(1, 0, 0, 1, 0, 0); 833using Matrix matrix = new(1, 0, 0, 1, 0, 0); 859using Matrix matrix = new(1, 0, 0, 1, 0, 0); 874using Matrix matrix = new(1, 0, 0, 1, 0, 0);
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 (26)
1070using Matrix matrix = new(); 1100Matrix matrix = new(); 1111using Matrix matrix = new(123, 24, 82, 16, 47, 30); 1120using Matrix matrix = new(); 1137using Matrix matrix = new(); 1150using Matrix transform = new(1, 2, 3, 4, 5, 6); 1189using Matrix transform = new(1, 2, 3, 4, 5, 6); 1190using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1206using Matrix transform = new(1, 2, 3, 4, 5, 6); 1207using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1231Matrix matrix = new(); 1245using Matrix matrix = new(123, 24, 82, 16, 47, 30); 1257using Matrix matrix = new(); 1266using Matrix matrix = new(); 1283using Matrix matrix = new(); 1299using Matrix transform = new(1, 2, 3, 4, 5, 6); 1319using Matrix transform = new(1, 2, 3, 4, 5, 6); 1373using Matrix transform = new(1, 2, 3, 4, 5, 6); 1391using Matrix transform = new(1, 2, 3, 4, 5, 6); 1456using Matrix transform = new(1, 2, 3, 4, 5, 6); 1476using Matrix transform = new(1, 2, 3, 4, 5, 6); 1741using Matrix transform = new(1, 2, 3, 4, 5, 6); 1806using Matrix transform = new(1, 2, 3, 4, 5, 6); 1822using Matrix transform = new(1, 2, 3, 4, 5, 6); 1838using Matrix transform = new(1, 2, 3, 4, 5, 6); 2817Assert.Equal(new Matrix(), graphics.Transform);
System\Drawing\PenTests.cs (55)
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 }; 759yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.Prepend }; 760yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.Append }; 806using Matrix matrix = new(123, 24, 82, 16, 47, 30); 816using Matrix transform = new(1, 2, 3, 4, 5, 6); 819Matrix matrix = new(); 835using Matrix transform = new(1, 2, 3, 4, 5, 6); 836using Matrix matrix = new(); 847using Matrix matrix = new(); 860using Matrix transform = new(1, 2, 3, 4, 5, 6); 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 }; 885yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Prepend }; 886yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Append }; 887yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Prepend }; 888yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Append }; 889yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Prepend }; 890yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, 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 }; 943yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend }; 944yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append }; 945yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend }; 946yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append }; 947yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend }; 948yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append }; 949yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend }; 950yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append }; 991using Matrix matrix = new(); 1064using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1065using Matrix expected = new(1, 2, 3, 4, 5, 6); 1087using Matrix matrix = new(123, 24, 82, 16, 47, 30); 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 }; 1118yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend }; 1119yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append }; 1120yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend }; 1121yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append }; 1122yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend }; 1123yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append }; 1124yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend }; 1125yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append }; 1166using Matrix matrix = new(); 1223using (Matrix matrix = new()) 1225Assert.Equal(new Matrix(), pen.Transform);
System\Drawing\RegionTests.cs (58)
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(); 1863using Matrix matrix = new(2, 0, 0, 0.5f, 10, 10); 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 (58)
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 }; 335yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.Prepend }; 336yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.Append }; 382using Matrix matrix = new(123, 24, 82, 16, 47, 30); 392using Matrix transform = new(1, 2, 3, 4, 5, 6); 395Matrix matrix = new(); 411using Matrix transform = new(1, 2, 3, 4, 5, 6); 412using Matrix matrix = new(); 423using Matrix matrix = new(); 436using Matrix transform = new(1, 2, 3, 4, 5, 6); 437using Matrix matrix = new(); 458yield return new object[] { new Matrix(), 90, MatrixOrder.Prepend }; 459yield return new object[] { new Matrix(), 90, MatrixOrder.Append }; 460yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Prepend }; 461yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Append }; 462yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Prepend }; 463yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Append }; 464yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Prepend }; 465yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, 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 }; 522yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend }; 523yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append }; 524yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend }; 525yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append }; 526yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend }; 527yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append }; 528yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend }; 529yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append }; 574using Matrix matrix = new(); 587using Matrix matrix = new(1, 2, 3, 4, 5, 6); 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 }; 627yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend }; 628yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append }; 629yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend }; 630yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append }; 631yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend }; 632yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append }; 633yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend }; 634yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, 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 (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
22Matrix transform = new(); 105Matrix transform = new();
System\Windows\Forms\DeviceContextScopeTests.cs (1)
43graphics.Transform = new Matrix(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f);
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
756using Matrix matrix = new(); 804using Matrix matrix = new();
324 references to Matrix
System.Drawing (1)
System.Drawing.cs (1)
43[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.Matrix))]
System.Drawing.Common (30)
Special\NotSupported.cs (30)
450public System.Drawing.Drawing2D.Matrix Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 650public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 651public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 863public System.Drawing.Drawing2D.Matrix Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 868public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 869public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1048public System.Drawing.RectangleF[] GetRegionScans(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1073public void Transform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1341public System.Drawing.Drawing2D.Matrix Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1344public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1345public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1562public void Flatten(System.Drawing.Drawing2D.Matrix? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1563public void Flatten(System.Drawing.Drawing2D.Matrix? matrix, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1565public System.Drawing.RectangleF GetBounds(System.Drawing.Drawing2D.Matrix? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1566public System.Drawing.RectangleF GetBounds(System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Pen? pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1588public void Transform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1590public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1591public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Drawing2D.WarpMode warpMode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1592public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Drawing2D.WarpMode warpMode, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1594public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.Matrix? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1595public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.Matrix? matrix, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1719public System.Drawing.Drawing2D.Matrix Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1722public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1723public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1779public System.Drawing.Drawing2D.Matrix Clone() { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1785public void Multiply(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1786public void Multiply(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1832public System.Drawing.Drawing2D.Matrix Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1835public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1836public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (287)
mono\System.Drawing\GraphicsTests.cs (3)
421using Matrix matrix = new(123, 24, 82, 16, 47, 30); 432using Matrix matrix = new(123, 24, 82, 16, 47, 30); 936private static void CheckMatrix(string message, Matrix m, float xx, float yx, float xy, float yy, float x0, float y0)
mono\System.Imaging\MetafileTest.cs (1)
352Matrix m = g.Transform;
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
1088using Matrix matrix = new(1f, 1f, 2f, 2f, 3f, 3f); 1102using Matrix matrix = new(1f, 1f, 2f, 2f, 3f, 3f); 1126using Matrix matrix = new(); 1139using Matrix matrix = new(); 1295using Matrix matrix = new(); 1305using Matrix matrix = new(); 1705using Matrix matrix = new(); 1727using Matrix matrix = new(); 1772using Matrix matrix = new(2, 0, 0, 2, 50, -50);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (14)
577using Matrix transform = new(1, 2, 3, 4, 5, 6); 659using Matrix matrix = new(1, 2, 3, 4, 5, 6); 660Matrix expectedTransform = brush.Transform; 675using Matrix matrix = new(1, 2, 3, 4, 5, 6); 676Matrix expectedTransform = brush.Transform; 704using Matrix transform = brush.Transform; 705Matrix matrix = new(); 718using Matrix matrix = new(123, 24, 82, 16, 47, 30); 740Matrix expectedTransform = brush.Transform; 757Matrix expectedTransform = brush.Transform; 790Matrix expectedTransform = brush.Transform; 807Matrix expectedTransform = brush.Transform; 841Matrix expectedTransform = brush.Transform; 858Matrix expectedTransform = brush.Transform;
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
15using Matrix matrix = new(matrix3X2); 29using Matrix matrix = new();
System\Drawing\Drawing2D\MatrixTests.cs (64)
32private static Matrix CreateDisposedMatrix() 34Matrix matrix = new(); 42using Matrix matrix = new(); 68using Matrix matrix = new(m11, m12, m21, m22, dx, dy); 107using Matrix matrix = new(rect, plgpnts); 119using Matrix matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray()); 161using Matrix matrix = new(1, 2, 3, 4, 5, 6); 162using Matrix clone = Assert.IsType<Matrix>(matrix.Clone()); 183Matrix matrix = new(1, 2, 3, 4, 5, 6); 200public void Equals_Other_ReturnsExpected(Matrix matrix, object other, bool expected) 206if (other is Matrix otherMatrix) 240public void Invert_Matrix_Success(Matrix matrix, float[] expectedElements) 255using Matrix matrix1 = new(f, 2, 3, 4, 5, 6); 256using Matrix matrix2 = new(1, f, 3, 4, 5, 6); 257using Matrix matrix3 = new(1, 2, f, 4, 5, 6); 258using Matrix matrix4 = new(1, 2, 3, f, 5, 6); 259using Matrix matrix5 = new(1, 2, 3, 4, f, 6); 260using Matrix matrix6 = new(1, 2, 3, 4, 5, f); 316public void Multiply_Matrix_Success(Matrix matrix, Matrix multiple, MatrixOrder order, float[] expected) 323using Matrix clone1 = matrix.Clone(); 336using Matrix matrix = new(); 346using Matrix matrix = new(); 347using Matrix other = new(); 354Matrix disposedMatrix = CreateDisposedMatrix(); 356using Matrix other = new(); 364Matrix disposedMatrix = CreateDisposedMatrix(); 366using Matrix matrix = new(); 374using Matrix matrix = new(); 382using Matrix matrix = new(1, 2, 3, 4, 5, 6); 407using (Matrix rotated45 = new()) 417using (Matrix rotated90 = new()) 439public void Rotate_Matrix_Success(Matrix matrix, float angle, PointF point, MatrixOrder order, float[] expectedElements, float[] expectedElementsRotateAt, bool isIdentity) 447using Matrix clone1 = matrix.Clone(); 453using Matrix clone2 = matrix.Clone(); 461using Matrix clone3 = matrix.Clone(); 467using Matrix clone4 = matrix.Clone(); 485using Matrix matrix = new(); 492Matrix disposedMatrix = CreateDisposedMatrix(); 503using Matrix matrix = new(); 539public void Scale_Matrix_Succss(Matrix matrix, float scaleX, float scaleY, MatrixOrder order, float[] expectedElements) 545using Matrix clone = matrix.Clone(); 560using Matrix matrix = new(); 567Matrix disposedMatrix = CreateDisposedMatrix(); 605public void Shear_Matrix_Succss(Matrix matrix, float shearX, float shearY, MatrixOrder order, float[] expectedElements) 611using Matrix clone = matrix.Clone(); 626using Matrix matrix = new(); 633Matrix disposedMatrix = CreateDisposedMatrix(); 662public void Translate_Matrix_Success(Matrix matrix, float offsetX, float offsetY, MatrixOrder order, float[] expectedElements) 668using Matrix clone = matrix.Clone(); 683using Matrix matrix = new(); 690Matrix disposedMatrix = CreateDisposedMatrix(); 705public void TransformPoints_Point_Success(Matrix matrix, Point[] points, Point[] expectedPoints) 716public void TransformPoints_PointF_Success(Matrix matrix, Point[] points, Point[] expectedPoints) 729using Matrix matrix = new(); 737using Matrix matrix = new(); 745Matrix disposedMatrix = CreateDisposedMatrix(); 760public void TransformVectors_Point_Success(Matrix matrix, Point[] points, Point[] expectedPoints) 771public void TransformVectors_PointF_Success(Matrix matrix, Point[] points, Point[] expectedPoints) 783public void VectorTransformPoints_Points_Success(Matrix matrix, Point[] points, Point[] expectedPoints) 795using Matrix matrix = new(); 804using Matrix matrix = new(); 813Matrix disposedMatrix = CreateDisposedMatrix();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (21)
632using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 633using Matrix matrix = new(1, 0, 0, 1, 1, 1); 643using Matrix matrix = new(); 668using Matrix nonInvertible = new(123, 24, 82, 16, 47, 30); 676using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 677using Matrix matrix = new(1, 0, 0, 1, 1, 1); 698using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 699using Matrix matrix = new(1, 0, 0, 1, 1, 1); 711using Matrix defaultMatrix = new(1, 0, 0, 1, 0, 0); 712using Matrix matrix = new(1, 0, 0, 1, 1, 1); 721using Matrix matrix = new(1, 0, 0, 1, 1, 1); 740using Matrix transform = brush.Transform; 741Matrix matrix = new(); 754using Matrix matrix = new(1, 1, 1, 1, 1, 1); 762using Matrix nonInvertible = new(123, 24, 82, 16, 47, 30); 771using Matrix matrix = new(1, 0, 0, 1, 0, 0); 783using Matrix matrix = new(1, 0, 0, 1, 0, 0); 809using Matrix matrix = new(1, 0, 0, 1, 0, 0); 833using Matrix matrix = new(1, 0, 0, 1, 0, 0); 859using Matrix matrix = new(1, 0, 0, 1, 0, 0); 874using Matrix matrix = new(1, 0, 0, 1, 0, 0);
System\Drawing\Graphics_GetContextTests.cs (20)
21Assert.IsType<Matrix>(infoArray[1]); 23using Matrix matrix = (Matrix)infoArray[1]; 38using Matrix matrix = (Matrix)info[1]; 48using Matrix initialTransform = new(); 54using Matrix matrix = (Matrix)info[1]; 64using Matrix initialTransform = new(); 72using Matrix matrix = (Matrix)info[1]; 82using Matrix initialTransform = new(); 90using Matrix matrix = (Matrix)info[1]; 100using Matrix initialTransform = new(); 110using Matrix matrix = (Matrix)info[1]; 121using Matrix initialTransform = new(); 132using Matrix matrix = (Matrix)info[1];
System\Drawing\GraphicsTests.Core.cs (2)
58using (Matrix matrix = graphics.Transform) 63using (Matrix matrix = new())
System\Drawing\GraphicsTests.cs (34)
1070using Matrix matrix = new(); 1100Matrix matrix = new(); 1111using Matrix matrix = new(123, 24, 82, 16, 47, 30); 1120using Matrix matrix = new(); 1137using Matrix matrix = new(); 1150using Matrix transform = new(1, 2, 3, 4, 5, 6); 1189using Matrix transform = new(1, 2, 3, 4, 5, 6); 1190using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1192Matrix expectedTransform = graphics.Transform; 1206using Matrix transform = new(1, 2, 3, 4, 5, 6); 1207using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1209Matrix expectedTransform = graphics.Transform; 1229Matrix transform = brush.Transform; 1231Matrix matrix = new(); 1245using Matrix matrix = new(123, 24, 82, 16, 47, 30); 1257using Matrix matrix = new(); 1266using Matrix matrix = new(); 1283using Matrix matrix = new(); 1299using Matrix transform = new(1, 2, 3, 4, 5, 6); 1301Matrix expectedTransform = graphics.Transform; 1319using Matrix transform = new(1, 2, 3, 4, 5, 6); 1321Matrix expectedTransform = graphics.Transform; 1373using Matrix transform = new(1, 2, 3, 4, 5, 6); 1375Matrix expectedTransform = graphics.Transform; 1391using Matrix transform = new(1, 2, 3, 4, 5, 6); 1393Matrix expectedTransform = graphics.Transform; 1456using Matrix transform = new(1, 2, 3, 4, 5, 6); 1458Matrix expectedTransform = graphics.Transform; 1476using Matrix transform = new(1, 2, 3, 4, 5, 6); 1478Matrix expectedTransform = graphics.Transform; 1741using Matrix transform = new(1, 2, 3, 4, 5, 6); 1806using Matrix transform = new(1, 2, 3, 4, 5, 6); 1822using Matrix transform = new(1, 2, 3, 4, 5, 6); 1838using Matrix transform = new(1, 2, 3, 4, 5, 6);
System\Drawing\PenTests.cs (27)
765public void MultiplyTransform_Matrix_SetsTransformToExpected(Matrix originalTransform, Matrix matrix, MatrixOrder matrixOrder) 771using Matrix expected = originalTransform.Clone(); 806using Matrix matrix = new(123, 24, 82, 16, 47, 30); 816using Matrix transform = new(1, 2, 3, 4, 5, 6); 819Matrix matrix = new(); 835using Matrix transform = new(1, 2, 3, 4, 5, 6); 836using Matrix matrix = new(); 847using Matrix matrix = new(); 860using Matrix transform = new(1, 2, 3, 4, 5, 6); 861using Matrix matrix = new(); 874using Matrix matrix = new(); 895public void RotateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float angle, MatrixOrder matrixOrder) 900using (Matrix expected = originalTransform.Clone()) 931using Matrix matrix = new(); 955public void ScaleTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float scaleX, float scaleY, MatrixOrder matrixOrder) 960using (Matrix expected = originalTransform.Clone()) 991using Matrix matrix = new(); 1064using Matrix matrix = new(1, 2, 3, 4, 5, 6); 1065using Matrix expected = new(1, 2, 3, 4, 5, 6); 1087using Matrix matrix = new(123, 24, 82, 16, 47, 30); 1096Matrix matrix = new(); 1106using Matrix matrix = new(); 1130public void TranslateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float dX, float dY, MatrixOrder matrixOrder) 1135using (Matrix expected = originalTransform.Clone()) 1166using Matrix matrix = new(); 1223using (Matrix matrix = new())
System\Drawing\RegionTests.cs (58)
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(); 1863using Matrix matrix = new(2, 0, 0, 0.5f, 10, 10); 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 (31)
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(); 341public void MultiplyTransform_Matrix_SetsTransformToExpected(Matrix originalTransform, Matrix matrix, MatrixOrder matrixOrder) 347using var expected = originalTransform.Clone(); 382using Matrix matrix = new(123, 24, 82, 16, 47, 30); 392using Matrix transform = new(1, 2, 3, 4, 5, 6); 395Matrix matrix = new(); 411using Matrix transform = new(1, 2, 3, 4, 5, 6); 412using Matrix matrix = new(); 423using Matrix matrix = new(); 436using Matrix transform = new(1, 2, 3, 4, 5, 6); 437using Matrix matrix = new(); 470public void RotateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float angle, MatrixOrder matrixOrder) 476using Matrix expected = originalTransform.Clone(); 510using Matrix matrix = new(); 534public void ScaleTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float scaleX, float scaleY, MatrixOrder matrixOrder) 540using Matrix expected = originalTransform.Clone(); 574using Matrix matrix = new(); 587using Matrix matrix = new(1, 2, 3, 4, 5, 6); 605Matrix matrix = new(); 615using Matrix matrix = new(); 639public void TranslateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float dX, float dY, MatrixOrder matrixOrder) 645using Matrix expected = originalTransform.Clone(); 679using Matrix matrix = new();
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
225Matrix m = new();
System\Windows\Forms\Rendering\ControlPaint.cs (1)
434Matrix transform = textureBrush.Transform;
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();