Beispiel #1
0
 public override MyGraphic Clone()
 {
     MyBezier me = new MyBezier(Point1, Point2, Point3, Point0);
     me.isVisible = this.isVisible;
     me.drawmode = this.drawmode;
     return me;
 }
Beispiel #2
0
 //画贝塞尔曲线
 private void AddBezier(Point pt1, Point pt2, Point pt3, Point pt0)
 {
     MyBezier mb = new MyBezier(pt1, pt2, pt3, pt0);
     mb.drawmode = new GeometryMode(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), pen);
     compositeGraphic.Add(mb);
     du_refresh();
     canvas1.ReleaseMouseCapture();
 }
        public override MyGraphic Clone()
        {
            MyBezier me = new MyBezier(Point1, Point2, Point3, Point0);

            me.isVisible = this.isVisible;
            me.drawmode  = this.drawmode;
            return(me);
        }