protected override void OnMouseDown(int x, int y) { _latestBrushPathCache = null; _latestMousePoint = new PixelFarm.Agg.Imaging.Point(x, y); _points.Clear(); _myBrushPath = new PixelFarm.Agg.Samples.MyBrushPath(); _myBrushPath.FillColor = PixelFarm.Drawing.Color.Red; _points.Add(new System.Drawing.Point(x, y)); _myBrushPath.AddPointAtFirst(x, y); }
internal override void SetVxs(VertexStore vxs) { if (_myBrushPath != null) { //replace _myBrushPath.SetVxs(vxs); } else { _myBrushPath = new PixelFarm.Agg.Samples.MyBrushPath(); _myBrushPath.SetVxs(vxs); } _latestBrushPathCache = null; }