private PointF CalculateNodeOffset(PointF[] newPoints) { //Rect可能发生变化,需要计算偏移 GraphicsPath path = new GraphicsPath(newPoints, _types); RectangleF rf = path.GetBounds(); path.Dispose(); NewRect = rf; PointF p1 = Calculation.CalcMatrixPoint(DataBk, PointF.Empty); PointF p2 = Calculation.CalcMatrixPoint(this, PointF.Empty); return(new PointF(p1.X - p2.X, p1.Y - p2.Y)); }