コード例 #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));
 }