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)
577
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
596
AssertExtensions.Throws<ArgumentException>(null, () => brush.Transform = new
Matrix
());
659
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
675
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
705
Matrix matrix =
new
();
718
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
729
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new
Matrix
()));
730
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)
34
Matrix matrix =
new
();
42
using Matrix matrix =
new
();
68
using Matrix matrix =
new
(m11, m12, m21, m22, dx, dy);
107
using Matrix matrix =
new
(rect, plgpnts);
119
using Matrix matrix =
new
(rect, plgpnts.Select(p => (PointF)p).ToArray());
130
AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new
Matrix
(default(RectangleF), null));
131
AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new
Matrix
(default, null));
140
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
(default, new PointF[length]));
141
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
(default, new Point[length]));
147
Assert.Throws<OutOfMemoryException>(() => new
Matrix
(new Rectangle(1, 1, 0, 1), new Point[3]));
148
Assert.Throws<OutOfMemoryException>(() => new
Matrix
(new RectangleF(1, 1, 0, 1), new PointF[3]));
154
Assert.Throws<OutOfMemoryException>(() => new
Matrix
(new Rectangle(1, 1, 1, 0), new Point[3]));
155
Assert.Throws<OutOfMemoryException>(() => new
Matrix
(new RectangleF(1, 1, 1, 0), new PointF[3]));
161
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
175
yield return new object[] { new
Matrix
(), new
Matrix
(1, 0, 0, 1, 0, 0), true };
176
yield return new object[] { new
Matrix
(), new
Matrix
(123, 24, 82, 16, 47, 30), false };
177
yield return new object[] { new
Matrix
(), new
Matrix
(1.1f, 0.1f, -0.1f, 0.9f, 0, 0), false };
178
yield return new object[] { new
Matrix
(), new
Matrix
(1.01f, 0.01f, -0.01f, 0.99f, 0, 0), false };
179
yield return new object[] { new
Matrix
(), new
Matrix
(1.001f, 0.001f, -0.001f, 0.999f, 0, 0), false };
180
yield return new object[] { new
Matrix
(), new
Matrix
(1.0001f, 0.0001f, -0.0001f, 0.9999f, 0, 0), false };
181
yield return new object[] { new
Matrix
(), new
Matrix
(1.0009f, 0.0009f, -0.0009f, 0.99995f, 0, 0), false };
183
Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
186
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 5, 6), true };
187
yield return new object[] { matrix.Clone(), new
Matrix
(2, 2, 3, 4, 5, 6), false };
188
yield return new object[] { matrix.Clone(), new
Matrix
(1, 3, 3, 4, 5, 6), false };
189
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 4, 4, 5, 6), false };
190
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 5, 5, 6), false };
191
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 6, 6), false };
192
yield return new object[] { matrix.Clone(), new
Matrix
(1, 2, 3, 4, 5, 7), false };
194
yield return new object[] { new
Matrix
(), null, false };
195
yield return new object[] { new
Matrix
(), new(), false };
216
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Equals(new
Matrix
()));
222
AssertExtensions.Throws<ArgumentException>(null, () => new
Matrix
().Equals(CreateDisposedMatrix()));
233
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new float[] { -2, 1, 1.5f, -0.5f, 1, -2 } };
234
yield return new object[] { new
Matrix
(1, 0, 0, 1, 8, 8), new float[] { 1, 0, 0, 1, -8, -8 } };
235
yield return new object[] { new
Matrix
(), new float[] { 1, 0, 0, 1, 0, 0 } };
255
using Matrix matrix1 =
new
(f, 2, 3, 4, 5, 6);
256
using Matrix matrix2 =
new
(1, f, 3, 4, 5, 6);
257
using Matrix matrix3 =
new
(1, 2, f, 4, 5, 6);
258
using Matrix matrix4 =
new
(1, 2, 3, f, 5, 6);
259
using Matrix matrix5 =
new
(1, 2, 3, 4, f, 6);
260
using Matrix matrix6 =
new
(1, 2, 3, 4, 5, f);
289
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 } };
290
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 } };
292
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
293
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), new
Matrix
(), MatrixOrder.Append, new float[] { 10, 20, 30, 40, 50, 60 } };
295
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 } };
296
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 } };
298
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 } };
299
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 } };
301
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 } };
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.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } };
304
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 } };
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.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } };
307
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 } };
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.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } };
310
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 } };
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.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } };
336
using Matrix matrix =
new
();
346
using Matrix matrix =
new
();
347
using Matrix other =
new
();
356
using Matrix other =
new
();
366
using Matrix matrix =
new
();
374
using Matrix matrix =
new
();
382
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
398
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 };
399
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 };
401
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 };
402
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 };
404
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 };
405
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 };
407
using (Matrix rotated45 =
new
())
414
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
415
yield return new object[] { new
Matrix
(), 90, PointF.Empty, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
417
using (Matrix rotated90 =
new
())
424
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 };
425
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 };
427
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 };
428
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 };
430
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 };
431
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 };
433
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 };
434
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 };
485
using Matrix matrix =
new
();
503
using Matrix matrix =
new
();
509
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
510
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 20, 80, 60, 160, 100, 240 } };
512
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 } };
513
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 } };
515
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } };
516
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 0, 0, 0, 0, 0, 0 } };
518
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
519
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
521
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -20, -40, -120, -160, 50, 60 } };
522
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -20, -80, -60, -160, -100, -240 } };
524
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 } };
525
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 } };
527
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 } };
528
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 } };
530
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 } };
531
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 } };
533
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 } };
534
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 } };
560
using Matrix matrix =
new
();
575
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Prepend, new float[] { 130, 180, 50, 80, 50, 60 } };
576
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), 2, 4, MatrixOrder.Append, new float[] { 50, 60, 110, 160, 170, 260 } };
578
yield return new object[] { new
Matrix
(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Prepend, new float[] { 185, 43, 59, 32, 2, 1 } };
579
yield return new object[] { new
Matrix
(5, 3, 9, 2, 2, 1), 10, 20, MatrixOrder.Append, new float[] { 35, 103, 29, 182, 12, 41 } };
581
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
582
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 0, 0, MatrixOrder.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
584
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Prepend, new float[] { 140, 200, 140, 200, 50, 60 } };
585
yield return new object[] { new
Matrix
(20, 40, 120, 160, 50, 60), 1, 1, MatrixOrder.Append, new float[] { 60, 60, 280, 280, 110, 110 } };
587
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Prepend, new float[] { -110, -140, 10, 0, 50, 60 } };
588
yield return new object[] { new
Matrix
(10, 20, 30, 40, 50, 60), -2, -4, MatrixOrder.Append, new float[] { -30, -20, -50, -80, -70, -140 } };
590
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 } };
591
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 } };
593
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 } };
594
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 } };
596
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 } };
597
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 } };
599
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 } };
600
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 } };
626
using Matrix matrix =
new
();
641
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Prepend, new float[] { 2, 4, 6, 8, 80, 112 } };
642
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), 5, 10, MatrixOrder.Append, new float[] { 2, 4, 6, 8, 15, 22 } };
644
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } };
645
yield return new object[] { new
Matrix
(), 5, 10, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 5, 10 } };
647
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 } };
648
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 } };
650
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 } };
651
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 } };
653
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 } };
654
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 } };
656
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 } };
657
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 } };
683
using Matrix matrix =
new
();
698
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) } };
699
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
700
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), new Point[1], new Point[] { new(10, 12) } };
729
using Matrix matrix =
new
();
737
using Matrix matrix =
new
();
753
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) } };
754
yield return new object[] { new
Matrix
(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
755
yield return new object[] { new
Matrix
(2, 4, 6, 8, 10, 12), new Point[1], new Point[1] };
795
using Matrix matrix =
new
();
804
using Matrix matrix =
new
();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (20)
632
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
633
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
643
using Matrix matrix =
new
();
668
using Matrix nonInvertible =
new
(123, 24, 82, 16, 47, 30);
676
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
677
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
698
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
699
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
711
using Matrix defaultMatrix =
new
(1, 0, 0, 1, 0, 0);
712
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
721
using Matrix matrix =
new
(1, 0, 0, 1, 1, 1);
741
Matrix matrix =
new
();
754
using Matrix matrix =
new
(1, 1, 1, 1, 1, 1);
762
using Matrix nonInvertible =
new
(123, 24, 82, 16, 47, 30);
771
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
783
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
809
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
833
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
859
using Matrix matrix =
new
(1, 0, 0, 1, 0, 0);
874
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)
1070
using Matrix matrix =
new
();
1100
Matrix matrix =
new
();
1111
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
1120
using Matrix matrix =
new
();
1137
using Matrix matrix =
new
();
1150
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1189
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1190
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
1206
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1207
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
1231
Matrix matrix =
new
();
1245
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
1257
using Matrix matrix =
new
();
1266
using Matrix matrix =
new
();
1283
using Matrix matrix =
new
();
1299
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1319
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1373
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1391
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1456
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1476
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1741
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1806
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1822
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
1838
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
2817
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)
24
using Matrix matrix =
new
();
65
using Matrix matrix =
new
();
92
using Matrix matrix =
new
();
113
using Matrix matrix =
new
();
146
using Matrix matrix =
new
();
167
using Matrix matrix =
new
();
201
using Matrix matrix =
new
();
223
using Matrix matrix =
new
();
333
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Prepend };
334
yield return new object[] { new
Matrix
(), new
Matrix
(1, 2, 3, 4, 5, 6), MatrixOrder.Append };
335
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Prepend };
336
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), new
Matrix
(2, 3, 4, 5, 6, 7), MatrixOrder.Append };
382
using Matrix matrix =
new
(123, 24, 82, 16, 47, 30);
392
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
395
Matrix matrix =
new
();
411
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
412
using Matrix matrix =
new
();
423
using Matrix matrix =
new
();
436
using Matrix transform =
new
(1, 2, 3, 4, 5, 6);
437
using Matrix matrix =
new
();
458
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Prepend };
459
yield return new object[] { new
Matrix
(), 90, MatrixOrder.Append };
460
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Prepend };
461
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, MatrixOrder.Append };
462
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Prepend };
463
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 360, MatrixOrder.Append };
464
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Prepend };
465
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -45, MatrixOrder.Append };
510
using Matrix matrix =
new
();
520
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
521
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
522
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
523
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
524
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
525
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
526
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
527
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
528
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
529
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
574
using Matrix matrix =
new
();
587
using Matrix matrix =
new
(1, 2, 3, 4, 5, 6);
605
Matrix matrix =
new
();
615
using Matrix matrix =
new
();
625
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Prepend };
626
yield return new object[] { new
Matrix
(), 2, 3, MatrixOrder.Append };
627
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Prepend };
628
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.Append };
629
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Prepend };
630
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.Append };
631
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Prepend };
632
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.Append };
633
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Prepend };
634
yield return new object[] { new
Matrix
(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.Append };
679
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)
756
using Matrix matrix =
new
();
804
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)
577
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
659
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
660
Matrix
expectedTransform = brush.Transform;
675
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
676
Matrix
expectedTransform = brush.Transform;
704
using
Matrix
transform = brush.Transform;
705
Matrix
matrix = new();
718
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
740
Matrix
expectedTransform = brush.Transform;
757
Matrix
expectedTransform = brush.Transform;
790
Matrix
expectedTransform = brush.Transform;
807
Matrix
expectedTransform = brush.Transform;
841
Matrix
expectedTransform = brush.Transform;
858
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)
32
private static
Matrix
CreateDisposedMatrix()
34
Matrix
matrix = new();
42
using
Matrix
matrix = new();
68
using
Matrix
matrix = new(m11, m12, m21, m22, dx, dy);
107
using
Matrix
matrix = new(rect, plgpnts);
119
using
Matrix
matrix = new(rect, plgpnts.Select(p => (PointF)p).ToArray());
161
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
162
using
Matrix
clone = Assert.IsType<
Matrix
>(matrix.Clone());
183
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
200
public void Equals_Other_ReturnsExpected(
Matrix
matrix, object other, bool expected)
206
if (other is
Matrix
otherMatrix)
240
public void Invert_Matrix_Success(
Matrix
matrix, float[] expectedElements)
255
using
Matrix
matrix1 = new(f, 2, 3, 4, 5, 6);
256
using
Matrix
matrix2 = new(1, f, 3, 4, 5, 6);
257
using
Matrix
matrix3 = new(1, 2, f, 4, 5, 6);
258
using
Matrix
matrix4 = new(1, 2, 3, f, 5, 6);
259
using
Matrix
matrix5 = new(1, 2, 3, 4, f, 6);
260
using
Matrix
matrix6 = new(1, 2, 3, 4, 5, f);
316
public void Multiply_Matrix_Success(
Matrix
matrix,
Matrix
multiple, MatrixOrder order, float[] expected)
323
using
Matrix
clone1 = matrix.Clone();
336
using
Matrix
matrix = new();
346
using
Matrix
matrix = new();
347
using
Matrix
other = new();
354
Matrix
disposedMatrix = CreateDisposedMatrix();
356
using
Matrix
other = new();
364
Matrix
disposedMatrix = CreateDisposedMatrix();
366
using
Matrix
matrix = new();
374
using
Matrix
matrix = new();
382
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
407
using (
Matrix
rotated45 = new())
417
using (
Matrix
rotated90 = new())
439
public void Rotate_Matrix_Success(
Matrix
matrix, float angle, PointF point, MatrixOrder order, float[] expectedElements, float[] expectedElementsRotateAt, bool isIdentity)
447
using
Matrix
clone1 = matrix.Clone();
453
using
Matrix
clone2 = matrix.Clone();
461
using
Matrix
clone3 = matrix.Clone();
467
using
Matrix
clone4 = matrix.Clone();
485
using
Matrix
matrix = new();
492
Matrix
disposedMatrix = CreateDisposedMatrix();
503
using
Matrix
matrix = new();
539
public void Scale_Matrix_Succss(
Matrix
matrix, float scaleX, float scaleY, MatrixOrder order, float[] expectedElements)
545
using
Matrix
clone = matrix.Clone();
560
using
Matrix
matrix = new();
567
Matrix
disposedMatrix = CreateDisposedMatrix();
605
public void Shear_Matrix_Succss(
Matrix
matrix, float shearX, float shearY, MatrixOrder order, float[] expectedElements)
611
using
Matrix
clone = matrix.Clone();
626
using
Matrix
matrix = new();
633
Matrix
disposedMatrix = CreateDisposedMatrix();
662
public void Translate_Matrix_Success(
Matrix
matrix, float offsetX, float offsetY, MatrixOrder order, float[] expectedElements)
668
using
Matrix
clone = matrix.Clone();
683
using
Matrix
matrix = new();
690
Matrix
disposedMatrix = CreateDisposedMatrix();
705
public void TransformPoints_Point_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
716
public void TransformPoints_PointF_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
729
using
Matrix
matrix = new();
737
using
Matrix
matrix = new();
745
Matrix
disposedMatrix = CreateDisposedMatrix();
760
public void TransformVectors_Point_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
771
public void TransformVectors_PointF_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
783
public void VectorTransformPoints_Points_Success(
Matrix
matrix, Point[] points, Point[] expectedPoints)
795
using
Matrix
matrix = new();
804
using
Matrix
matrix = new();
813
Matrix
disposedMatrix = CreateDisposedMatrix();
System\Drawing\Drawing2D\PathGradientBrushTests.cs (21)
632
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
633
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
643
using
Matrix
matrix = new();
668
using
Matrix
nonInvertible = new(123, 24, 82, 16, 47, 30);
676
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
677
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
698
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
699
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
711
using
Matrix
defaultMatrix = new(1, 0, 0, 1, 0, 0);
712
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
721
using
Matrix
matrix = new(1, 0, 0, 1, 1, 1);
740
using
Matrix
transform = brush.Transform;
741
Matrix
matrix = new();
754
using
Matrix
matrix = new(1, 1, 1, 1, 1, 1);
762
using
Matrix
nonInvertible = new(123, 24, 82, 16, 47, 30);
771
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
783
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
809
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
833
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
859
using
Matrix
matrix = new(1, 0, 0, 1, 0, 0);
874
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)
1070
using
Matrix
matrix = new();
1100
Matrix
matrix = new();
1111
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
1120
using
Matrix
matrix = new();
1137
using
Matrix
matrix = new();
1150
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1189
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1190
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
1192
Matrix
expectedTransform = graphics.Transform;
1206
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1207
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
1209
Matrix
expectedTransform = graphics.Transform;
1229
Matrix
transform = brush.Transform;
1231
Matrix
matrix = new();
1245
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
1257
using
Matrix
matrix = new();
1266
using
Matrix
matrix = new();
1283
using
Matrix
matrix = new();
1299
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1301
Matrix
expectedTransform = graphics.Transform;
1319
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1321
Matrix
expectedTransform = graphics.Transform;
1373
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1375
Matrix
expectedTransform = graphics.Transform;
1391
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1393
Matrix
expectedTransform = graphics.Transform;
1456
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1458
Matrix
expectedTransform = graphics.Transform;
1476
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1478
Matrix
expectedTransform = graphics.Transform;
1741
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1806
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1822
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
1838
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)
24
using
Matrix
matrix = new();
65
using
Matrix
matrix = new();
92
using
Matrix
matrix = new();
113
using
Matrix
matrix = new();
146
using
Matrix
matrix = new();
167
using
Matrix
matrix = new();
201
using
Matrix
matrix = new();
223
using
Matrix
matrix = new();
341
public void MultiplyTransform_Matrix_SetsTransformToExpected(
Matrix
originalTransform,
Matrix
matrix, MatrixOrder matrixOrder)
347
using
var
expected = originalTransform.Clone();
382
using
Matrix
matrix = new(123, 24, 82, 16, 47, 30);
392
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
395
Matrix
matrix = new();
411
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
412
using
Matrix
matrix = new();
423
using
Matrix
matrix = new();
436
using
Matrix
transform = new(1, 2, 3, 4, 5, 6);
437
using
Matrix
matrix = new();
470
public void RotateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float angle, MatrixOrder matrixOrder)
476
using
Matrix
expected = originalTransform.Clone();
510
using
Matrix
matrix = new();
534
public void ScaleTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float scaleX, float scaleY, MatrixOrder matrixOrder)
540
using
Matrix
expected = originalTransform.Clone();
574
using
Matrix
matrix = new();
587
using
Matrix
matrix = new(1, 2, 3, 4, 5, 6);
605
Matrix
matrix = new();
615
using
Matrix
matrix = new();
639
public void TranslateTransform_Invoke_SetsTransformToExpected(
Matrix
originalTransform, float dX, float dY, MatrixOrder matrixOrder)
645
using
Matrix
expected = originalTransform.Clone();
679
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)
434
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)
756
using
Matrix
matrix = new();
804
using
Matrix
matrix = new();