Пример #1
0
        void Save()
        {
            Area toSave      = new Area(new Point(0, 0), 200, 200);
            var  otherCanvas = new DummyCanvas(widget);

            tk.Save(otherCanvas, toSave, "testCanvas.png");
        }
Пример #2
0
        void Copy()
        {
            Area  toSave      = new Area(new Point(0, 0), 200, 200);
            var   otherCanvas = new DummyCanvas(widget);
            Image copied      = tk.Copy(otherCanvas, toSave);

            tk.DrawImage(new Point(600, 400), 200, 200, copied, ScaleMode.AspectFill);
        }
Пример #3
0
 void Copy()
 {
     Area toSave = new Area (new Point (0, 0), 200, 200);
     var otherCanvas = new DummyCanvas (widget);
     Image copied = tk.Copy (otherCanvas, toSave);
     tk.DrawImage (new Point (600, 400), 200, 200, copied, ScaleMode.AspectFill);
 }
Пример #4
0
 void Save()
 {
     Area toSave = new Area (new Point (0, 0), 200, 200);
     var otherCanvas = new DummyCanvas (widget);
     tk.Save (otherCanvas, toSave, "testCanvas.png");
 }