예제 #1
0
 public void Initialize()
 {
     Origin.X    = this.Size.Width - this.Size.Width / 3;
     Origin.Y    = this.Size.Height / 2;
     YAxis.X     = Origin.X;
     XAxis.Y     = Origin.Y;
     Buff        = new Bitmap(this.Size.Width, this.Size.Height);
     ScaleFactor = new SizeD((double)this.Size.Width / Realsize.Width, (double)this.Size.Height / Realsize.Height);
 }
예제 #2
0
        public void Update(int tol, double rw, double rh, double ox, double oy, bool ax, bool ay)
        {
            this.tolerance = tol;
            this.Realsize  = new SizeD(rw, rh);
            this.Origin    = toAbsolute(new PointD(ox, oy));
            ScaleFactor    = new SizeD((double)this.Size.Width / Realsize.Width, (double)this.Size.Height / Realsize.Height);

            Buff = new Bitmap(this.Size.Width, this.Size.Height);
            Ax   = ax; Ay = ay;
            UpdateBuffer();
        }