Exemplo n.º 1
0
 private static RectangleF RemoveMargin(RectangleF bounds, Margins margin)
 {
     bounds.Width += margin.Horizontal;
      bounds.X -= margin.Left;
      bounds.Height += margin.Vertical;
      bounds.Y -= margin.Top;
      return bounds;
 }
Exemplo n.º 2
0
 private static RectangleF AddMargin(RectangleF bounds, Margins margin)
 {
     bounds.Width -= margin.Horizontal;
      bounds.X += margin.Left;
      bounds.Height -= margin.Vertical;
      bounds.Y += margin.Top;
      return bounds;
 }