public void ExtendBoundsToFitShape() { RectangleF rect = shape.GetBoundingRect(); dimension = new Rectangle( (int)Math.Round(rect.X), (int)Math.Round(rect.Y), (int)Math.Round(rect.Width), (int)Math.Round(rect.Height) ); Refresh(); }
public RectangleF GetBoundingRectangle() { return(shape.GetBoundingRect()); }