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); })); }
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); }
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); }