示例#1
0
 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);
 }
示例#2
0
 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;
 }