示例#1
0
文件: Util.cs 项目: pnt239/Untipic
 public static Rectangle GetShapeBound(ShapeBase shape)
 {
     return(new Rectangle(Point.Round(shape.Location), Size.Round(shape.Size)));
 }
示例#2
0
文件: Util.cs 项目: pnt239/Untipic
 public static RectangleF GetShapeBoundF(ShapeBase shape)
 {
     return(new RectangleF(shape.Location, shape.Size));
 }