Пример #1
0
 public static Rectangle GetShapeBound(ShapeBase shape)
 {
     return(new Rectangle(Point.Round(shape.Location), Size.Round(shape.Size)));
 }
Пример #2
0
 public static RectangleF GetShapeBoundF(ShapeBase shape)
 {
     return(new RectangleF(shape.Location, shape.Size));
 }