public static Rectangle GetShapeBound(ShapeBase shape) { return(new Rectangle(Point.Round(shape.Location), Size.Round(shape.Size))); }
public static RectangleF GetShapeBoundF(ShapeBase shape) { return(new RectangleF(shape.Location, shape.Size)); }