MatrixOrder.Append : MatrixOrder « System.Drawing.Drawing2D « C# / C Sharp by API






MatrixOrder.Append

  

using System;
using System.Drawing;
using System.Drawing.Drawing2D;


    public class Matrix1
    {
        [STAThread]
        static void Main(string[] args)
        {
          Matrix m = new Matrix();
          m.Rotate(90, MatrixOrder.Append);
          m.Translate(7, 12, MatrixOrder.Append);
          Point[] p = {new Point(20, 45)};
          Console.WriteLine(p.GetValue(0).ToString());
          m.TransformPoints(p);
          Console.WriteLine(p.GetValue(0).ToString());
    
          Console.ReadLine();
        }
    }

   
    
  








Related examples in the same category