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)); }
public static Rectangle GetWithBaseRectangle(BaseRectangle baseRectangle) { return new Rectangle(baseRectangle.TopLeft, baseRectangle.Width, baseRectangle.Height); }