示例#1
0
        public void AddStroke(MyStroke stroke)
        {
            VisibleStroke p = stroke.ToStroke(da.Clone());

            p.Visibility = this.Visibility;
            strokes.Add(p);
            App.ink.Dispatcher.Invoke(new Action(() => { App.ink.Strokes.Add(p); }));
        }
示例#2
0
        internal VisibleStroke ToStroke(DrawingAttributes da)
        {
            var c = new StylusPointCollection();

            for (int i = 0; i < point.Length; ++i)
            {
                var p = new StylusPoint(point[i].X, point[i].Y, press[i]);
                c.Add(p);
            }
            var s = new VisibleStroke(c, da);

            return(s);
        }
示例#3
0
        public VisibleStroke ToStroke()
        {
            var c = new StylusPointCollection();

            for (int i = 0; i < point.Length; ++i)
            {
                var p = new StylusPoint(point[i].X, point[i].Y, press[i]);
                c.Add(p);
            }
            var s = new VisibleStroke(c);

            return(s);
        }