Esempio n. 1
0
 public void ResizeAndRedraw()
 {
     if (fig == null)
     {
         return;
     }
     fig.Resize(pictureBox1.Width, pictureBox1.Height);
     fig.FrameRedraw();
     fig.PlotLines(Xs, Ys, 1, Color.Red);
     fig.PlotScatter(Xs, Ys, 5, Color.Blue);
     pictureBox1.Image = fig.Render();
 }
Esempio n. 2
0
 public void UpdateGraph()
 {
     thinking = true;
     stopwatch.Restart();
     SP.Resize(pictureBox1.Width, pictureBox1.Height);
     SP.Clear();
     SP.Grid();
     SP.PlotLine(Xs, Ys);
     pictureBox1.BackgroundImage = SP.Render();
     this.Refresh();
     Application.DoEvents();
     stopwatch.Stop();
     MessageUpdate();
     thinking = false;
 }
Esempio n. 3
0
 public void GraphResize()
 {
     //Console.WriteLine("resizing to ({0}, {1})", pictureBox1.Width, pictureBox1.Height);
     SP.Resize(pictureBox1.Width, pictureBox1.Height);
 }