private void Draw() { var bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height); var canvas = Graphics.FromImage(bmp); _model.Draw(canvas); pictureBox1.Image = bmp; }
private void Draw() { if (splineModel != null) { Graphics canvas = Graphics.FromImage(bmp); splineModel.Draw(canvas); pictureBox1.Refresh(); canvas.Clear(Color.White); } }