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)
668
[InlineData(MatrixOrder.
Prepend
)]
670
[InlineData(MatrixOrder.
Prepend
- 1)]
678
if (order is MatrixOrder.Append or MatrixOrder.
Prepend
)
730
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(), MatrixOrder.
Prepend
));
748
[InlineData(1, 1, MatrixOrder.
Prepend
)]
750
[InlineData(0, 0, MatrixOrder.
Prepend
)]
752
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
765
[InlineData(MatrixOrder.
Prepend
- 1)]
798
[InlineData(1, 1, MatrixOrder.
Prepend
)]
800
[InlineData(0, 0, MatrixOrder.
Prepend
)]
802
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
815
[InlineData(MatrixOrder.
Prepend
- 1)]
849
[InlineData(1, MatrixOrder.
Prepend
)]
851
[InlineData(0, MatrixOrder.
Prepend
)]
853
[InlineData(-1, MatrixOrder.
Prepend
)]
866
[InlineData(MatrixOrder.
Prepend
- 1)]
System\Drawing\Drawing2D\MatrixTests.cs (57)
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
321
if (order == MatrixOrder.
Prepend
)
338
AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.
Prepend
));
342
[InlineData(MatrixOrder.
Prepend
- 1)]
358
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Multiply(other, MatrixOrder.
Prepend
));
368
AssertExtensions.Throws<ArgumentException>(null, () => matrix.Multiply(disposedMatrix, MatrixOrder.
Prepend
));
376
Assert.Throws<InvalidOperationException>(() => matrix.Multiply(matrix, MatrixOrder.
Prepend
));
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 };
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 };
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 };
410
yield return new object[] { rotated45.Clone(), 135, PointF.Empty, MatrixOrder.
Prepend
, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
414
yield return new object[] { new Matrix(), 90, PointF.Empty, MatrixOrder.
Prepend
, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
420
yield return new object[] { rotated90.Clone(), 270, PointF.Empty, MatrixOrder.
Prepend
, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
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 };
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 };
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 };
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 };
443
if (order == MatrixOrder.
Prepend
)
481
[InlineData(MatrixOrder.
Prepend
- 1)]
499
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
543
if (order == MatrixOrder.
Prepend
)
556
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
609
if (order == MatrixOrder.
Prepend
)
622
[InlineData(MatrixOrder.
Prepend
- 1)]
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 } };
644
yield return new object[] { new Matrix(), 5, 10, MatrixOrder.
Prepend
, 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 } };
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 } };
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 } };
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 } };
666
if (order == MatrixOrder.
Prepend
)
679
[InlineData(MatrixOrder.
Prepend
- 1)]
System\Drawing\Drawing2D\PathGradientBrushTests.cs (11)
700
defaultMatrix.Multiply(matrix, MatrixOrder.
Prepend
);
707
[InlineData(MatrixOrder.
Prepend
)]
772
matrix.Translate(20f, 30f, MatrixOrder.
Prepend
);
779
[InlineData(MatrixOrder.
Prepend
)]
810
matrix.Scale(2, 4, MatrixOrder.
Prepend
);
814
matrix.Scale(0.5f, 0.25f, MatrixOrder.
Prepend
);
818
matrix.Scale(float.MaxValue, float.MinValue, MatrixOrder.
Prepend
);
822
matrix.Scale(float.MinValue, float.MaxValue, MatrixOrder.
Prepend
);
829
[InlineData(MatrixOrder.
Prepend
)]
860
matrix.Rotate(90, MatrixOrder.
Prepend
);
870
[InlineData(MatrixOrder.
Prepend
)]
System\Drawing\GraphicsTests.cs (14)
1200
[InlineData(MatrixOrder.
Prepend
)]
1251
[InlineData(MatrixOrder.
Prepend
- 1)]
1288
AssertExtensions.Throws<ArgumentException>(null, () => graphics.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
1309
[InlineData(1, 1, MatrixOrder.
Prepend
)]
1311
[InlineData(0, 0, MatrixOrder.
Prepend
)]
1313
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
1329
[InlineData(MatrixOrder.
Prepend
- 1)]
1383
[InlineData(1, 1, MatrixOrder.
Prepend
)]
1385
[InlineData(-1, -1, MatrixOrder.
Prepend
)]
1410
[InlineData(MatrixOrder.
Prepend
- 1)]
1466
[InlineData(1, MatrixOrder.
Prepend
)]
1468
[InlineData(0, MatrixOrder.
Prepend
)]
1470
[InlineData(-1, MatrixOrder.
Prepend
)]
1486
[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)
333
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.
Prepend
};
335
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.
Prepend
};
351
if (matrixOrder == MatrixOrder.
Prepend
)
374
AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.
Prepend
));
384
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
405
[InlineData(MatrixOrder.
Prepend
- 1)]
428
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.
Prepend
));
458
yield return new object[] { new Matrix(), 90, MatrixOrder.
Prepend
};
460
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), 360, MatrixOrder.
Prepend
};
464
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.
Prepend
};
480
if (matrixOrder == MatrixOrder.
Prepend
)
497
[InlineData(MatrixOrder.
Prepend
- 1)]
515
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(1, MatrixOrder.
Prepend
));
520
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
522
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), 1, 1, MatrixOrder.
Prepend
};
526
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), 0.5, 0.75, MatrixOrder.
Prepend
};
544
if (matrixOrder == MatrixOrder.
Prepend
)
561
[InlineData(MatrixOrder.
Prepend
- 1)]
579
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(1, 2, MatrixOrder.
Prepend
));
625
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Prepend
};
627
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), 1, 1, MatrixOrder.
Prepend
};
631
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), 0.5, 0.75, MatrixOrder.
Prepend
};
649
if (matrixOrder == MatrixOrder.
Prepend
)
666
[InlineData(MatrixOrder.
Prepend
- 1)]
684
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(1, 2, MatrixOrder.
Prepend
));