437 instantiations of Matrix
System.Drawing.Common.Tests (431)
mono\System.Drawing\GraphicsTests.cs (16)
153
rects = 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
());
244
rects = g.Clip.GetRegionScans(new
Matrix
());
256
rects = g.Clip.GetRegionScans(new
Matrix
());
268
rects = g.Clip.GetRegionScans(new
Matrix
());
421
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
432
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
471
g.Transform = new
Matrix
();
514
g.Transform = new
Matrix
(1, 0, 0, 1, 8, 8);
529
g.Transform = new
Matrix
(0.5f, 0, 0, 0.25f, 0, 0);
545
g.Transform = new
Matrix
(1, 0, 0, 1, 8, 8);
675
g.Transform = new
Matrix
(1, 2, 3, 4, 5, 6);
685
g.Transform = new
Matrix
(1, 2, 3, 4, 5, 6);
695
g.Transform = new
Matrix
(1, 2, 3, 4, 5, 6);
System\Drawing\Drawing2D\GraphicsPathTests.cs (12)
1088
using Matrix matrix =
new
(1f, 1f, 2f, 2f, 3f, 3f);
1102
using Matrix matrix =
new
(1f, 1f, 2f, 2f, 3f, 3f);
1126
using Matrix matrix =
new
();
1139
using Matrix matrix =
new
();
1295
using Matrix matrix =
new
();
1305
using Matrix matrix =
new
();
1685
AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new
Matrix
()));
1686
AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new
Matrix
(), 0.67f));
1705
using Matrix matrix =
new
();
1707
gp.Widen(pen, new
Matrix
());
1727
using Matrix matrix =
new
();
1772
using Matrix matrix =
new
(2, 0, 0, 2, 50, -50);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (8)
579
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
598
AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new
Matrix
());
661
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
677
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
707
Matrix matrix =
new
();
720
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
731
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
()));
732
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
(), MatrixOrder.Prepend));
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
15
using Matrix matrix =
new
(matrix3X2);
29
using Matrix matrix =
new
();
System\Drawing\Drawing2D\MatrixTests.cs (169)
35
Matrix matrix =
new
();
43
using Matrix matrix =
new
();
69
using Matrix matrix =
new
(m11, m12, m21, m22, dx, dy);
108
using Matrix matrix =
new
(rect, plgpnts);
120
using Matrix matrix =
new
(rect, plgpnts.Select(p => (PointF)p).ToArray());
131
AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new
Matrix
(default(RectangleF), null));
132
AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new
Matrix
(default, null));
141
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
(default, new PointF[length]));
142
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
(default, new Point[length]));
148
Assert.Throws<ExternalException>(() => new
Matrix
(new Rectangle(1, 1, 0, 1), new Point[3]));
149
Assert.Throws<ExternalException>(() => new
Matrix
(new RectangleF(1, 1, 0, 1), new PointF[3]));
155
Assert.Throws<ExternalException>(() => new
Matrix
(new Rectangle(1, 1, 1, 0), new Point[3]));
156
Assert.Throws<ExternalException>(() => new
Matrix
(new RectangleF(1, 1, 1, 0), new PointF[3]));
162
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
176
yield return new object[] { new
Matrix
(), new
Matrix
(1, 0, 0, 1, 0, 0), true };
177
yield return new object[] { new
Matrix
(), new
Matrix
(123, 24, 82, 16, 47, 30), false };
178
yield return new object[] { new
Matrix
(), new
Matrix
(1.1f, 0.1f, -0.1f, 0.9f, 0, 0), false };
179
yield return new object[] { new
Matrix
(), new
Matrix
(1.01f, 0.01f, -0.01f, 0.99f, 0, 0), false };
180
yield return new object[] { new
Matrix
(), new
Matrix
(1.001f, 0.001f, -0.001f, 0.999f, 0, 0), false };
181
yield return new object[] { new
Matrix
(), new
Matrix
(1.0001f, 0.0001f, -0.0001f, 0.9999f, 0, 0), false };
182
yield return new object[] { new
Matrix
(), new
Matrix
(1.0009f, 0.0009f, -0.0009f, 0.99995f, 0, 0), false };
184
Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
187
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 5, 6), true };
188
yield return new object[] { matrix.Clone(), new
Matrix
(2, 2, 3, 4, 5, 6), false };
189
yield return new object[] { matrix.Clone(), new
Matrix
(1, 3, 3, 4, 5, 6), false };
190
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 4, 4, 5, 6), false };
191
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 5, 5, 6), false };
192
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 6, 6), false };
193
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 5, 7), false };
195
yield return new object[] { new
Matrix
(), null, false };
196
yield return new object[] { new
Matrix
(), new(), false };
217
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Equals(new
Matrix
()));
223
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
().Equals(CreateDisposedMatrix()));
234
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new float[] { -2, 1, 1.5f, -0.5f, 1, -2 } };
235
yield return new object[] { new
Matrix
(1, 0, 0, 1, 8, 8), new float[] { 1, 0, 0, 1, -8, -8 } };
236
yield return new object[] { new
Matrix
(), new float[] { 1, 0, 0, 1, 0, 0 } };
256
using Matrix matrix1 =
new
(f, 2, 3, 4, 5, 6);
257
using Matrix matrix2 =
new
(1, f, 3, 4, 5, 6);
258
using Matrix matrix3 =
new
(1, 2, f, 4, 5, 6);
259
using Matrix matrix4 =
new
(1, 2, 3, f, 5, 6);
260
using Matrix matrix5 =
new
(1, 2, 3, 4, f, 6);
261
using Matrix matrix6 =
new
(1, 2, 3, 4, 5, f);
290
yield 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 } };
291
yield 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 } };
293
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
294
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Append, new float[] { 10, 20, 30, 40, 50, 60 } };
296
yield 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 } };
297
yield 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 } };
299
yield 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 } };
300
yield 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 } };
302
yield 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 } };
303
yield 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 } };
305
yield 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 } };
306
yield 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 } };
308
yield 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 } };
309
yield 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 } };
311
yield 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 } };
312
yield 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 } };
337
using Matrix matrix =
new
();
347
using Matrix matrix =
new
();
348
using Matrix other =
new
();
357
using Matrix other =
new
();
367
using Matrix matrix =
new
();
375
using Matrix matrix =
new
();
383
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
399
yield 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 };
400
yield 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 };
402
yield 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 };
403
yield 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 };
405
yield return new object[] { new
Matrix
(), 45, PointF.Empty, MatrixOrder.Prepend, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
406
yield return new object[] { new
Matrix
(), 45, PointF.Empty, MatrixOrder.Append, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
408
using (Matrix rotated45 =
new
())
415
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
416
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
418
using (Matrix rotated90 =
new
())
425
yield 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 };
426
yield 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 };
428
yield 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 };
429
yield 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 };
431
yield 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 };
432
yield 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 };
434
yield 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 };
435
yield 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 };
486
using Matrix matrix =
new
();
504
using Matrix matrix =
new
();
510
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
511
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 20, 80, 60, 160, 100, 240 } };
513
yield 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 } };
514
yield 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 } };
516
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } };
517
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 0, 0, 0, 0, 0, 0 } };
519
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
520
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
522
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -20, -40, -120, -160, 50, 60 } };
523
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -20, -80, -60, -160, -100, -240 } };
525
yield 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 } };
526
yield 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 } };
528
yield 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 } };
529
yield 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 } };
531
yield 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 } };
532
yield 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 } };
534
yield 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 } };
535
yield 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 } };
561
using Matrix matrix =
new
();
576
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 130, 180, 50, 80, 50, 60 } };
577
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 50, 60, 110, 160, 170, 260 } };
579
yield return new object[] { new
Matrix
(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Prepend, new float[] { 185, 43, 59, 32, 2, 1 } };
580
yield return new object[] { new
Matrix
(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Append, new float[] { 35, 103, 29, 182, 12, 41 } };
582
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
583
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
585
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 140, 200, 140, 200, 50, 60 } };
586
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 60, 60, 280, 280, 110, 110 } };
588
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -110, -140, 10, 0, 50, 60 } };
589
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -30, -20, -50, -80, -70, -140 } };
591
yield 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 } };
592
yield 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 } };
594
yield 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 } };
595
yield 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 } };
597
yield 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 } };
598
yield 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 } };
600
yield 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 } };
601
yield 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 } };
627
using Matrix matrix =
new
();
642
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Prepend, new float[] { 2, 4, 6, 8, 80, 112 } };
643
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Append, new float[] { 2, 4, 6, 8, 15, 22 } };
645
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } };
646
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 5, 10 } };
648
yield 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 } };
649
yield 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 } };
651
yield 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 } };
652
yield 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 } };
654
yield 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 } };
655
yield 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 } };
657
yield 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 } };
658
yield 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 } };
684
using Matrix matrix =
new
();
699
yield 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) } };
700
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
701
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), new Point[1], new Point[] { new(10, 12) } };
730
using Matrix matrix =
new
();
738
using Matrix matrix =
new
();
754
yield 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) } };
755
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
756
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), new Point[1], new Point[1] };
796
using Matrix matrix =
new
();
805
using Matrix matrix =
new
();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (20)
634
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
635
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
645
using Matrix matrix =
new
();
670
using Matrix nonInvertible =
new
(123, 24, 82, 16, 47, 30);
678
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
679
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
700
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
701
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
713
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
714
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
723
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
743
Matrix matrix =
new
();
756
using Matrix matrix =
new
(1, 1, 1, 1, 1, 1);
764
using Matrix nonInvertible =
new
(123, 24, 82, 16, 47, 30);
773
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
785
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
811
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
835
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
861
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
876
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
System\Drawing\Graphics_GetContextTests.cs (5)
48
using Matrix initialTransform =
new
();
64
using Matrix initialTransform =
new
();
82
using Matrix initialTransform =
new
();
100
using Matrix initialTransform =
new
();
121
using Matrix initialTransform =
new
();
System\Drawing\GraphicsTests.Core.cs (1)
63
using (Matrix matrix =
new
())
System\Drawing\GraphicsTests.cs (26)
1071
using Matrix matrix =
new
();
1101
Matrix matrix =
new
();
1112
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
1121
using Matrix matrix =
new
();
1138
using Matrix matrix =
new
();
1151
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1190
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1191
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
1207
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1208
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
1232
Matrix matrix =
new
();
1246
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
1258
using Matrix matrix =
new
();
1267
using Matrix matrix =
new
();
1284
using Matrix matrix =
new
();
1300
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1320
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1374
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1392
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1457
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1477
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1742
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1807
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1823
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1839
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
2818
Assert.Equal(new
Matrix
(), graphics.Transform);
System\Drawing\PenTests.cs (55)
757
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
758
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
759
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Prepend };
760
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Append };
806
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
816
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
819
Matrix matrix =
new
();
835
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
836
using Matrix matrix =
new
();
847
using Matrix matrix =
new
();
860
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
861
using Matrix matrix =
new
();
874
using Matrix matrix =
new
();
883
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
884
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
885
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Prepend };
886
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Append };
887
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Prepend };
888
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Append };
889
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Prepend };
890
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Append };
931
using Matrix matrix =
new
();
941
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
942
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
943
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
944
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
945
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
946
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
947
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
948
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
949
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
950
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
991
using Matrix matrix =
new
();
1064
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
1065
using Matrix expected =
new
(1, 2, 3, 4, 5, 6);
1087
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
1096
Matrix matrix =
new
();
1106
using Matrix matrix =
new
();
1116
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
1117
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
1118
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
1119
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
1120
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
1121
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
1122
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
1123
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
1124
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
1125
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
1166
using Matrix matrix =
new
();
1223
using (Matrix matrix =
new
())
1225
Assert.Equal(new
Matrix
(), pen.Transform);
System\Drawing\RegionTests.cs (58)
94
using Matrix matrix =
new
();
171
using Matrix matrix =
new
();
186
using Matrix matrix =
new
();
238
using Matrix matrix =
new
();
263
using (Matrix matrix =
new
())
347
using Matrix matrix =
new
();
357
using Matrix matrix =
new
();
372
using Matrix matrix =
new
();
389
using Matrix matrix =
new
();
433
using Matrix matrix =
new
();
449
using Matrix matrix =
new
();
467
using Matrix matrix =
new
();
481
using Matrix matrix =
new
();
783
using Matrix matrix =
new
();
793
using Matrix matrix =
new
();
804
using Matrix matrix =
new
();
840
using Matrix matrix =
new
();
856
using Matrix matrix =
new
();
874
using Matrix matrix =
new
();
1009
using Matrix matrix =
new
();
1011
using Matrix emptyMatrix =
new
();
1029
using Matrix matrix =
new
();
1037
Matrix matrix =
new
();
1046
using Matrix matrix =
new
();
1126
using Matrix matrix =
new
();
1135
using Matrix matrix =
new
();
1173
using Matrix matrix =
new
();
1182
using Matrix matrix =
new
();
1201
using Matrix matrix =
new
();
1210
using Matrix matrix =
new
();
1231
using Matrix matrix =
new
();
1447
using (Matrix matrix =
new
())
1688
using Matrix matrix =
new
();
1698
using Matrix matrix =
new
();
1736
using Matrix matrix =
new
();
1752
using Matrix matrix =
new
();
1770
using Matrix matrix =
new
();
1808
using Matrix matrix =
new
();
1817
using Matrix matrix =
new
();
1818
using Matrix emptyMatrix =
new
();
1834
using Matrix matrix =
new
();
1835
using Matrix emptyMatrix =
new
();
1849
using Matrix matrix =
new
();
1850
using Matrix emptyMatrix =
new
();
1863
using Matrix matrix =
new
(2, 0, 0, 0.5f, 10, 10);
1864
using Matrix emptyMatrix =
new
();
1882
using Matrix matrix =
new
();
1893
using Matrix matrix =
new
();
1902
using Matrix matrix =
new
();
1916
using Matrix matrix =
new
();
1925
using Matrix matrix =
new
();
1937
using Matrix matrix =
new
();
1954
using Matrix matrix =
new
();
2040
using Matrix matrix =
new
();
2050
using Matrix matrix =
new
();
2094
using Matrix matrix =
new
();
2110
using Matrix matrix =
new
();
2128
using Matrix matrix =
new
();
System\Drawing\SystemPensTest.cs (1)
75
using (Matrix matrix =
new
())
System\Drawing\TextureBrushTests.cs (58)
25
using Matrix matrix =
new
();
66
using Matrix matrix =
new
();
93
using Matrix matrix =
new
();
114
using Matrix matrix =
new
();
147
using Matrix matrix =
new
();
168
using Matrix matrix =
new
();
202
using Matrix matrix =
new
();
224
using Matrix matrix =
new
();
334
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
335
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
336
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Prepend };
337
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Append };
383
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
393
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
396
Matrix matrix =
new
();
412
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
413
using Matrix matrix =
new
();
424
using Matrix matrix =
new
();
437
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
438
using Matrix matrix =
new
();
459
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
460
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
461
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Prepend };
462
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Append };
463
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Prepend };
464
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Append };
465
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Prepend };
466
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Append };
511
using Matrix matrix =
new
();
521
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
522
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
523
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
524
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
525
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
526
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
527
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
528
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
529
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
530
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
575
using Matrix matrix =
new
();
588
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
606
Matrix matrix =
new
();
616
using Matrix matrix =
new
();
626
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
627
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
628
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
629
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
630
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
631
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
632
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
633
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
634
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
635
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
680
using Matrix matrix =
new
();
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
225
Matrix m =
new
();
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
22
Matrix transform =
new
();
105
Matrix transform =
new
();
System\Windows\Forms\DeviceContextScopeTests.cs (1)
43
graphics.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)
758
using Matrix matrix =
new
();
806
using 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)
450
public System.Drawing.Drawing2D.
Matrix
Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
650
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
651
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
863
public System.Drawing.Drawing2D.
Matrix
Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
868
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
869
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1048
public System.Drawing.RectangleF[] GetRegionScans(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1073
public void Transform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1341
public System.Drawing.Drawing2D.
Matrix
Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1344
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1345
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1562
public void Flatten(System.Drawing.Drawing2D.
Matrix
? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1563
public void Flatten(System.Drawing.Drawing2D.
Matrix
? matrix, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1565
public System.Drawing.RectangleF GetBounds(System.Drawing.Drawing2D.
Matrix
? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1566
public System.Drawing.RectangleF GetBounds(System.Drawing.Drawing2D.
Matrix
? matrix, System.Drawing.Pen? pen) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1588
public void Transform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1590
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.
Matrix
? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1591
public 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); }
1592
public 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); }
1594
public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.
Matrix
? matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1595
public void Widen(System.Drawing.Pen pen, System.Drawing.Drawing2D.
Matrix
? matrix, float flatness) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1719
public System.Drawing.Drawing2D.
Matrix
Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1722
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1723
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1779
public System.Drawing.Drawing2D.
Matrix
Clone() { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1785
public void Multiply(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1786
public void Multiply(System.Drawing.Drawing2D.
Matrix
matrix, System.Drawing.Drawing2D.MatrixOrder order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1832
public System.Drawing.Drawing2D.
Matrix
Transform { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1835
public void MultiplyTransform(System.Drawing.Drawing2D.
Matrix
matrix) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1836
public 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)
421
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
432
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
936
private 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)
352
Matrix
m = g.Transform;
System\Drawing\Drawing2D\GraphicsPathTests.cs (9)
1088
using
Matrix
matrix = new(1f, 1f, 2f, 2f, 3f, 3f);
1102
using
Matrix
matrix = new(1f, 1f, 2f, 2f, 3f, 3f);
1126
using
Matrix
matrix = new();
1139
using
Matrix
matrix = new();
1295
using
Matrix
matrix = new();
1305
using
Matrix
matrix = new();
1705
using
Matrix
matrix = new();
1727
using
Matrix
matrix = new();
1772
using
Matrix
matrix = new(2, 0, 0, 2, 50, -50);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (14)
579
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
661
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
662
Matrix
expectedTransform = brush.Transform;
677
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
678
Matrix
expectedTransform = brush.Transform;
706
using
Matrix
transform = brush.Transform;
707
Matrix
matrix = new();
720
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
742
Matrix
expectedTransform = brush.Transform;
759
Matrix
expectedTransform = brush.Transform;
792
Matrix
expectedTransform = brush.Transform;
809
Matrix
expectedTransform = brush.Transform;
843
Matrix
expectedTransform = brush.Transform;
860
Matrix
expectedTransform = brush.Transform;
System\Drawing\Drawing2D\MatrixTests.Core.cs (2)
15
using
Matrix
matrix = new(matrix3X2);
29
using
Matrix
matrix = new();
System\Drawing\Drawing2D\MatrixTests.cs (64)
33
private static
Matrix
CreateDisposedMatrix()
35
Matrix
matrix = new();
43
using
Matrix
matrix = new();
69
using
Matrix
matrix = new(m11, m12, m21, m22, dx, dy);
108
using
Matrix
matrix = new(rect, plgpnts);
120
using
Matrix
matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray());
162
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
163
using
Matrix
clone = Assert.IsType<
Matrix
>(matrix.Clone());
184
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
201
public void Equals_Other_ReturnsExpected(
Matrix
matrix, object other, bool expected)
207
if (other is
Matrix
otherMatrix)
241
public void Invert_Matrix_Success(
Matrix
matrix, float[] expectedElements)
256
using
Matrix
matrix1 = new(f, 2, 3, 4, 5, 6);
257
using
Matrix
matrix2 = new(1, f, 3, 4, 5, 6);
258
using
Matrix
matrix3 = new(1, 2, f, 4, 5, 6);
259
using
Matrix
matrix4 = new(1, 2, 3, f, 5, 6);
260
using
Matrix
matrix5 = new(1, 2, 3, 4, f, 6);
261
using
Matrix
matrix6 = new(1, 2, 3, 4, 5, f);
317
public void Multiply_Matrix_Success(
Matrix
matrix,
Matrix
multiple, MatrixOrder order, float[] expected)
324
using
Matrix
clone1 = matrix.Clone();
337
using
Matrix
matrix = new();
347
using
Matrix
matrix = new();
348
using
Matrix
other = new();
355
Matrix
disposedMatrix = CreateDisposedMatrix();
357
using
Matrix
other = new();
365
Matrix
disposedMatrix = CreateDisposedMatrix();
367
using
Matrix
matrix = new();
375
using
Matrix
matrix = new();
383
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
408
using (
Matrix
rotated45 = new())
418
using (
Matrix
rotated90 = new())
440
public void Rotate_Matrix_Success(
Matrix
matrix, float angle, PointF point, MatrixOrder order, float[] expectedElements, float[] expectedElementsRotateAt, bool isIdentity)
448
using
Matrix
clone1 = matrix.Clone();
454
using
Matrix
clone2 = matrix.Clone();
462
using
Matrix
clone3 = matrix.Clone();
468
using
Matrix
clone4 = matrix.Clone();
486
using
Matrix
matrix = new();
493
Matrix
disposedMatrix = CreateDisposedMatrix();
504
using
Matrix
matrix = new();
540
public void Scale_Matrix_Succss(
Matrix
matrix, float scaleX, float scaleY, MatrixOrder order, float[] expectedElements)
546
using
Matrix
clone = matrix.Clone();
561
using
Matrix
matrix = new();
568
Matrix
disposedMatrix = CreateDisposedMatrix();
606
public void Shear_Matrix_Succss(
Matrix
matrix, float shearX, float shearY, MatrixOrder order, float[] expectedElements)
612
using
Matrix
clone = matrix.Clone();
627
using
Matrix
matrix = new();
634
Matrix
disposedMatrix = CreateDisposedMatrix();
663
public void Translate_Matrix_Success(
Matrix
matrix, float offsetX, float offsetY, MatrixOrder order, float[] expectedElements)
669
using
Matrix
clone = matrix.Clone();
684
using
Matrix
matrix = new();
691
Matrix
disposedMatrix = CreateDisposedMatrix();
706
public void TransformPoints_Point_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
717
public void TransformPoints_PointF_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
730
using
Matrix
matrix = new();
738
using
Matrix
matrix = new();
746
Matrix
disposedMatrix = CreateDisposedMatrix();
761
public void TransformVectors_Point_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
772
public void TransformVectors_PointF_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
784
public void VectorTransformPoints_Points_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
796
using
Matrix
matrix = new();
805
using
Matrix
matrix = new();
814
Matrix
disposedMatrix = CreateDisposedMatrix();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (21)
634
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
635
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
645
using
Matrix
matrix = new();
670
using
Matrix
nonInvertible = new(123, 24, 82, 16, 47, 30);
678
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
679
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
700
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
701
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
713
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
714
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
723
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
742
using
Matrix
transform = brush.Transform;
743
Matrix
matrix = new();
756
using
Matrix
matrix = new(1, 1, 1, 1, 1, 1);
764
using
Matrix
nonInvertible = new(123, 24, 82, 16, 47, 30);
773
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
785
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
811
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
835
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
861
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
876
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
System\Drawing\Graphics_GetContextTests.cs (20)
21
Assert.IsType<
Matrix
>(infoArray[1]);
23
using
Matrix
matrix = (
Matrix
)infoArray[1];
38
using
Matrix
matrix = (
Matrix
)info[1];
48
using
Matrix
initialTransform = new();
54
using
Matrix
matrix = (
Matrix
)info[1];
64
using
Matrix
initialTransform = new();
72
using
Matrix
matrix = (
Matrix
)info[1];
82
using
Matrix
initialTransform = new();
90
using
Matrix
matrix = (
Matrix
)info[1];
100
using
Matrix
initialTransform = new();
110
using
Matrix
matrix = (
Matrix
)info[1];
121
using
Matrix
initialTransform = new();
132
using
Matrix
matrix = (
Matrix
)info[1];
System\Drawing\GraphicsTests.Core.cs (2)
58
using (
Matrix
matrix = graphics.Transform)
63
using (
Matrix
matrix = new())
System\Drawing\GraphicsTests.cs (34)
1071
using
Matrix
matrix = new();
1101
Matrix
matrix = new();
1112
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
1121
using
Matrix
matrix = new();
1138
using
Matrix
matrix = new();
1151
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1190
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1191
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
1193
Matrix
expectedTransform = graphics.Transform;
1207
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1208
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
1210
Matrix
expectedTransform = graphics.Transform;
1230
Matrix
transform = brush.Transform;
1232
Matrix
matrix = new();
1246
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
1258
using
Matrix
matrix = new();
1267
using
Matrix
matrix = new();
1284
using
Matrix
matrix = new();
1300
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1302
Matrix
expectedTransform = graphics.Transform;
1320
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1322
Matrix
expectedTransform = graphics.Transform;
1374
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1376
Matrix
expectedTransform = graphics.Transform;
1392
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1394
Matrix
expectedTransform = graphics.Transform;
1457
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1459
Matrix
expectedTransform = graphics.Transform;
1477
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1479
Matrix
expectedTransform = graphics.Transform;
1742
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1807
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1823
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1839
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
System\Drawing\PenTests.cs (27)
765
public void MultiplyTransform_Matrix_SetsTransformToExpected(
Matrix
originalTransform,
Matrix
matrix, MatrixOrder matrixOrder)
771
using
Matrix
expected = originalTransform.Clone();
806
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
816
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
819
Matrix
matrix = new();
835
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
836
using
Matrix
matrix = new();
847
using
Matrix
matrix = new();
860
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
861
using
Matrix
matrix = new();
874
using
Matrix
matrix = new();
895
public void RotateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float angle, MatrixOrder matrixOrder)
900
using (
Matrix
expected = originalTransform.Clone())
931
using
Matrix
matrix = new();
955
public void ScaleTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float scaleX, float scaleY, MatrixOrder matrixOrder)
960
using (
Matrix
expected = originalTransform.Clone())
991
using
Matrix
matrix = new();
1064
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
1065
using
Matrix
expected = new(1, 2, 3, 4, 5, 6);
1087
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
1096
Matrix
matrix = new();
1106
using
Matrix
matrix = new();
1130
public void TranslateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float dX, float dY, MatrixOrder matrixOrder)
1135
using (
Matrix
expected = originalTransform.Clone())
1166
using
Matrix
matrix = new();
1223
using (
Matrix
matrix = new())
System\Drawing\RegionTests.cs (58)
94
using
Matrix
matrix = new();
171
using
Matrix
matrix = new();
186
using
Matrix
matrix = new();
238
using
Matrix
matrix = new();
263
using (
Matrix
matrix = new())
347
using
Matrix
matrix = new();
357
using
Matrix
matrix = new();
372
using
Matrix
matrix = new();
389
using
Matrix
matrix = new();
433
using
Matrix
matrix = new();
449
using
Matrix
matrix = new();
467
using
Matrix
matrix = new();
481
using
Matrix
matrix = new();
783
using
Matrix
matrix = new();
793
using
Matrix
matrix = new();
804
using
Matrix
matrix = new();
840
using
Matrix
matrix = new();
856
using
Matrix
matrix = new();
874
using
Matrix
matrix = new();
1009
using
Matrix
matrix = new();
1011
using
Matrix
emptyMatrix = new();
1029
using
Matrix
matrix = new();
1037
Matrix
matrix = new();
1046
using
Matrix
matrix = new();
1126
using
Matrix
matrix = new();
1135
using
Matrix
matrix = new();
1173
using
Matrix
matrix = new();
1182
using
Matrix
matrix = new();
1201
using
Matrix
matrix = new();
1210
using
Matrix
matrix = new();
1231
using
Matrix
matrix = new();
1447
using (
Matrix
matrix = new())
1688
using
Matrix
matrix = new();
1698
using
Matrix
matrix = new();
1736
using
Matrix
matrix = new();
1752
using
Matrix
matrix = new();
1770
using
Matrix
matrix = new();
1808
using
Matrix
matrix = new();
1817
using
Matrix
matrix = new();
1818
using
Matrix
emptyMatrix = new();
1834
using
Matrix
matrix = new();
1835
using
Matrix
emptyMatrix = new();
1849
using
Matrix
matrix = new();
1850
using
Matrix
emptyMatrix = new();
1863
using
Matrix
matrix = new(2, 0, 0, 0.5f, 10, 10);
1864
using
Matrix
emptyMatrix = new();
1882
using
Matrix
matrix = new();
1893
using
Matrix
matrix = new();
1902
using
Matrix
matrix = new();
1916
using
Matrix
matrix = new();
1925
using
Matrix
matrix = new();
1937
using
Matrix
matrix = new();
1954
using
Matrix
matrix = new();
2040
using
Matrix
matrix = new();
2050
using
Matrix
matrix = new();
2094
using
Matrix
matrix = new();
2110
using
Matrix
matrix = new();
2128
using
Matrix
matrix = new();
System\Drawing\SystemPensTest.cs (1)
75
using (
Matrix
matrix = new())
System\Drawing\TextureBrushTests.cs (31)
25
using
Matrix
matrix = new();
66
using
Matrix
matrix = new();
93
using
Matrix
matrix = new();
114
using
Matrix
matrix = new();
147
using
Matrix
matrix = new();
168
using
Matrix
matrix = new();
202
using
Matrix
matrix = new();
224
using
Matrix
matrix = new();
342
public void MultiplyTransform_Matrix_SetsTransformToExpected(
Matrix
originalTransform,
Matrix
matrix, MatrixOrder matrixOrder)
348
using
var
expected = originalTransform.Clone();
383
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
393
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
396
Matrix
matrix = new();
412
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
413
using
Matrix
matrix = new();
424
using
Matrix
matrix = new();
437
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
438
using
Matrix
matrix = new();
471
public void RotateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float angle, MatrixOrder matrixOrder)
477
using
Matrix
expected = originalTransform.Clone();
511
using
Matrix
matrix = new();
535
public void ScaleTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float scaleX, float scaleY, MatrixOrder matrixOrder)
541
using
Matrix
expected = originalTransform.Clone();
575
using
Matrix
matrix = new();
588
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
606
Matrix
matrix = new();
616
using
Matrix
matrix = new();
640
public void TranslateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float dX, float dY, MatrixOrder matrixOrder)
646
using
Matrix
expected = originalTransform.Clone();
680
using
Matrix
matrix = new();
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
225
Matrix
m = new();
System\Windows\Forms\Rendering\ControlPaint.cs (1)
431
Matrix
transform = textureBrush.Transform;
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
22
Matrix
transform = new();
105
Matrix
transform = new();
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
758
using
Matrix
matrix = new();
806
using
Matrix
matrix = new();