Exemplo n.º 1
0
 public static Point Subtract(Point pt, Size sz)
 {
     return new Point(pt.X - sz.Width, pt.Y - sz.Height);
 }
Exemplo n.º 2
0
 public Point(Size sz)
 {
     this.x = sz.Width;
     this.y = sz.Height;
 }
Exemplo n.º 3
0
 public static Point Add(Point pt, Size sz)
 {
     return new Point(pt.X + sz.Width, pt.Y + sz.Height);
 }
Exemplo n.º 4
0
 public static Size Subtract(Size sz1, Size sz2)
 {
     return new Size(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
 }
Exemplo n.º 5
0
 public static Size Add(Size sz1, Size sz2)
 {
     return new Size(sz1.Width + sz2.Width, sz1.Height + sz2.Height);
 }
Exemplo n.º 6
0
 public static PointF Add(PointF pt, Size sz)
 {
     return new PointF(pt.X + (float)sz.Width, pt.Y + (float)sz.Height);
 }
Exemplo n.º 7
0
 public static PointF Subtract(PointF pt, Size sz)
 {
     return new PointF(pt.X - (float)sz.Width, pt.Y - (float)sz.Height);
 }