private void Form2_ResizeEnd(object sender, EventArgs e) { clearAll = true; buffer = new Bitmap(pictureBox1.Width, pictureBox1.Height); drawH.PrepareGraphNodes(buffer); drawH.DrawOnBuffer(buffer, true, 1, Color.Empty); pictureBox1.Refresh(); this.Invalidate(); drawH.maxGraphicsY = pictureBox1.Height - drawH.posStart - 30; drawH.maxGraphicsX = pictureBox1.Width - drawH.posStart - 30; }
private void pictureBox3_Paint(object sender, PaintEventArgs e) { e.Graphics.Clear(this.BackColor); left.posStart = 5; left.DrawOnBuffer(leftBitMap, false, 1, Color.Empty); e.Graphics.DrawImage(leftBitMap, 0, 0); }
private void pictureBox2_Paint(object sender, PaintEventArgs e) { e.Graphics.Clear(this.BackColor); upper.DrawOnBuffer(upperBitMap, false, 1, Color.Empty); e.Graphics.DrawImage(upperBitMap, 0, 0); }