Exemplo n.º 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); }));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }