Пример #1
0
 public myRect CopyFrom(myRect another)
 {
     this.X      = another.X;
     this.Y      = another.Y;
     this.Right  = another.Right;
     this.Bottom = another.Bottom;
     return(this);
 }
Пример #2
0
 // Constructor
 public MandImage()
 {
     m_bitmapCalculated = false;
     MainBmp            = new Bitmap(bitmapWidth, bitmapHeight);
     mandRect           = new myRect();
     mandRect.X         = minXBound;
     mandRect.Right     = maxXBound;
     mandRect.Y         = minYBound;
     mandRect.Bottom    = maxYBound;
     XInc = (FloatType)(mandRect.Width) / (MainBmp.Width);
     YInc = (FloatType)(mandRect.Height) / (MainBmp.Height);
 }