コード例 #1
0
        private void HeatMap_ResizeEnd(object sender, EventArgs e)
        {
            upperBitMap = new Bitmap(pictureBox2.Width, pictureBox2.Height);
            leftBitMap  = new Bitmap(pictureBox3.Width, pictureBox3.Height);
            left.PrepareGraphNodes(leftBitMap);
            upper.PrepareGraphNodes(upperBitMap);

            /* pictureBox1.Refresh();
             * pictureBox2.Refresh();
             * pictureBox3.Refresh();*/
            this.Invalidate();
        }
コード例 #2
0
 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;
 }