Exemplo n.º 1
0
 public static System.Drawing.RectangleF GetRectangleF(BaseRectangle rectangle) {
     return new System.Drawing.RectangleF(
         (float)(rectangle.TopLeft.X),
         (float)(rectangle.TopLeft.Y),
         (float)(rectangle.Width),
         (float)(rectangle.Height));
 }
Exemplo n.º 2
0
 public static Rectangle GetWithBaseRectangle(BaseRectangle baseRectangle) {
     return new Rectangle(baseRectangle.TopLeft, baseRectangle.Width, baseRectangle.Height);
 }