Esempio n. 1
0
        private void Draw()
        {
            var bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height);

            var canvas = Graphics.FromImage(bmp);

            _model.Draw(canvas);

            pictureBox1.Image = bmp;
        }
Esempio n. 2
0
        private void Draw()
        {
            if (splineModel != null)
            {
                Graphics canvas = Graphics.FromImage(bmp);
                splineModel.Draw(canvas);

                pictureBox1.Refresh();

                canvas.Clear(Color.White);
            }
        }