private void pictureBox1_Paint(object sender, PaintEventArgs e) { if (panelmode == "graph") { List <MyPoint> points = new List <MyPoint>(); string input = ScreenBox.Text; PreProcess(ref input); e.Graphics.DrawImageUnscaled(GraphArithmetic.GetPlot(input, cx, cx + 352, cy + 224, cy, plotmultiplier, plotside), 0, 0); } }
private void pictureBox1_Paint(object sender, PaintEventArgs e) { Bitmap IMAGE = GraphArithmetic.GetPlot("", cx, cx + pictureBox1.Width, cy, cy - pictureBox1.Height, plotmultiplier, plotside); RefreshList(); foreach (var item in Plots) { GraphArithmetic.DrawPlot(IMAGE, item.Value.Points, cx, cx + pictureBox1.Width, cy, cy - pictureBox1.Height, plotmultiplier, plotside); } e.Graphics.DrawImageUnscaled(IMAGE, 0, 0); }