159 references to Prepend
System.Drawing.Common.Tests (159)
mono\System.Drawing\GraphicsTests.cs (1)
686
g.TranslateTransform(3, -3, MatrixOrder.
Prepend
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (16)
670
[InlineData(MatrixOrder.
Prepend
)]
672
[InlineData(MatrixOrder.
Prepend
- 1)]
680
if (order is MatrixOrder.Append or MatrixOrder.
Prepend
)
732
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(), MatrixOrder.
Prepend
));
750
[InlineData(1, 1, MatrixOrder.
Prepend
)]
752
[InlineData(0, 0, MatrixOrder.
Prepend
)]
754
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
767
[InlineData(MatrixOrder.
Prepend
- 1)]
800
[InlineData(1, 1, MatrixOrder.
Prepend
)]
802
[InlineData(0, 0, MatrixOrder.
Prepend
)]
804
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
817
[InlineData(MatrixOrder.
Prepend
- 1)]
851
[InlineData(1, MatrixOrder.
Prepend
)]
853
[InlineData(0, MatrixOrder.
Prepend
)]
855
[InlineData(-1, MatrixOrder.
Prepend
)]
868
[InlineData(MatrixOrder.
Prepend
- 1)]
System\Drawing\Drawing2D\MatrixTests.cs (57)
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
322
if (order == MatrixOrder.
Prepend
)
339
AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.
Prepend
));
343
[InlineData(MatrixOrder.
Prepend
- 1)]
359
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Multiply(other, MatrixOrder.
Prepend
));
369
AssertExtensions.Throws<ArgumentException>(null, () => matrix.Multiply(disposedMatrix, MatrixOrder.
Prepend
));
377
Assert.Throws<InvalidOperationException>(() => matrix.Multiply(matrix, MatrixOrder.
Prepend
));
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 };
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 };
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 };
411
yield return new object[] { rotated45.Clone(), 135, PointF.Empty, MatrixOrder.
Prepend
, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
415
yield return new object[] { new Matrix(), 90, PointF.Empty, MatrixOrder.
Prepend
, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
421
yield return new object[] { rotated90.Clone(), 270, PointF.Empty, MatrixOrder.
Prepend
, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
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 };
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 };
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 };
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 };
444
if (order == MatrixOrder.
Prepend
)
482
[InlineData(MatrixOrder.
Prepend
- 1)]
500
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
544
if (order == MatrixOrder.
Prepend
)
557
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
610
if (order == MatrixOrder.
Prepend
)
623
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
645
yield return new object[] { new Matrix(), 5, 10, MatrixOrder.
Prepend
, 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 } };
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 } };
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 } };
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 } };
667
if (order == MatrixOrder.
Prepend
)
680
[InlineData(MatrixOrder.
Prepend
- 1)]
System\Drawing\Drawing2D\PathGradientBrushTests.cs (11)
702
defaultMatrix.Multiply(matrix, MatrixOrder.
Prepend
);
709
[InlineData(MatrixOrder.
Prepend
)]
774
matrix.Translate(20f, 30f, MatrixOrder.
Prepend
);
781
[InlineData(MatrixOrder.
Prepend
)]
812
matrix.Scale(2, 4, MatrixOrder.
Prepend
);
816
matrix.Scale(0.5f, 0.25f, MatrixOrder.
Prepend
);
820
matrix.Scale(float.MaxValue, float.MinValue, MatrixOrder.
Prepend
);
824
matrix.Scale(float.MinValue, float.MaxValue, MatrixOrder.
Prepend
);
831
[InlineData(MatrixOrder.
Prepend
)]
862
matrix.Rotate(90, MatrixOrder.
Prepend
);
872
[InlineData(MatrixOrder.
Prepend
)]
System\Drawing\GraphicsTests.cs (14)
1201
[InlineData(MatrixOrder.
Prepend
)]
1252
[InlineData(MatrixOrder.
Prepend
- 1)]
1289
AssertExtensions.Throws<ArgumentException>(null, () => graphics.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
1310
[InlineData(1, 1, MatrixOrder.
Prepend
)]
1312
[InlineData(0, 0, MatrixOrder.
Prepend
)]
1314
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
1330
[InlineData(MatrixOrder.
Prepend
- 1)]
1384
[InlineData(1, 1, MatrixOrder.
Prepend
)]
1386
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
1411
[InlineData(MatrixOrder.
Prepend
- 1)]
1467
[InlineData(1, MatrixOrder.
Prepend
)]
1469
[InlineData(0, MatrixOrder.
Prepend
)]
1471
[InlineData(-1, MatrixOrder.
Prepend
)]
1487
[InlineData(MatrixOrder.
Prepend
- 1)]
System\Drawing\PenTests.cs (30)
757
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.
Prepend
};
759
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.
Prepend
};
775
if (matrixOrder == MatrixOrder.
Prepend
)
798
Assert.Throws<ArgumentNullException>(() => pen.MultiplyTransform(null, MatrixOrder.
Prepend
));
808
AssertExtensions.Throws<ArgumentException>(null, () => pen.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
829
[InlineData(MatrixOrder.
Prepend
- 1)]
852
AssertExtensions.Throws<ArgumentException>(null, () => pen.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
883
yield return new object[] { new Matrix(), 90, MatrixOrder.
Prepend
};
885
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.
Prepend
};
887
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.
Prepend
};
889
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.
Prepend
};
905
if (matrixOrder == MatrixOrder.
Prepend
)
918
[InlineData(MatrixOrder.
Prepend
- 1)]
936
AssertExtensions.Throws<ArgumentException>(null, () => pen.RotateTransform(1, MatrixOrder.
Prepend
));
941
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
943
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Prepend
};
945
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Prepend
};
947
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Prepend
};
949
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Prepend
};
965
if (matrixOrder == MatrixOrder.
Prepend
)
978
[InlineData(MatrixOrder.
Prepend
- 1)]
996
AssertExtensions.Throws<ArgumentException>(null, () => pen.ScaleTransform(1, 2, MatrixOrder.
Prepend
));
1116
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
1118
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Prepend
};
1120
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Prepend
};
1122
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Prepend
};
1124
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Prepend
};
1140
if (matrixOrder == MatrixOrder.
Prepend
)
1153
[InlineData(MatrixOrder.
Prepend
- 1)]
1171
AssertExtensions.Throws<ArgumentException>(null, () => pen.TranslateTransform(1, 2, MatrixOrder.
Prepend
));
System\Drawing\TextureBrushTests.cs (30)
334
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.
Prepend
};
336
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.
Prepend
};
352
if (matrixOrder == MatrixOrder.
Prepend
)
375
AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.
Prepend
));
385
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
406
[InlineData(MatrixOrder.
Prepend
- 1)]
429
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
459
yield return new object[] { new Matrix(), 90, MatrixOrder.
Prepend
};
461
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.
Prepend
};
463
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.
Prepend
};
465
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.
Prepend
};
481
if (matrixOrder == MatrixOrder.
Prepend
)
498
[InlineData(MatrixOrder.
Prepend
- 1)]
516
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(1, MatrixOrder.
Prepend
));
521
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
523
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Prepend
};
525
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Prepend
};
527
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Prepend
};
529
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Prepend
};
545
if (matrixOrder == MatrixOrder.
Prepend
)
562
[InlineData(MatrixOrder.
Prepend
- 1)]
580
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(1, 2, MatrixOrder.
Prepend
));
626
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
628
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Prepend
};
630
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Prepend
};
632
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Prepend
};
634
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Prepend
};
650
if (matrixOrder == MatrixOrder.
Prepend
)
667
[InlineData(MatrixOrder.
Prepend
- 1)]
685
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(1, 2, MatrixOrder.
Prepend
));