Beispiel #1
0
 public RectangleI(Point location, SizeI size)
 {
     x      = location.X;
     y      = location.Y;
     width  = size.Width;
     height = size.Height;
 }
Beispiel #2
0
 public void Inflate(SizeI size)
 {
     Inflate(size.Width, size.Height);
 }
Beispiel #3
0
 public SizeI(SizeI size)
 {
     width  = size.width;
     height = size.height;
 }
Beispiel #4
0
 public bool Equals(SizeI other)
 {
     return(width == other.width && height == other.height);
 }
Beispiel #5
0
 public static SizeI Subtract(SizeI sz1, SizeI sz2)
 {
     return(new SizeI(sz1.Width - sz2.Width, sz1.Height - sz2.Height));
 }
Beispiel #6
0
 public static SizeI Add(SizeI sz1, SizeI sz2)
 {
     return(new SizeI(sz1.Width + sz2.Width, sz1.Height + sz2.Height));
 }