Esempio n. 1
0
 private void Graph_Paint(object sender, PaintEventArgs e)
 {
     if (BaseGraph != null)
     {
         using (Bitmap bmp = new Bitmap(this.Width, this.Height, PixelFormat.Format24bppRgb))
         using (WinFormGraphDrawer drawer = new WinFormGraphDrawer(MainPanel.CreateGraphics(), Graphics.FromImage(bmp), bmp))
         {
             BaseGraph.DrawFullGraph(drawer);
         }
     }
 }
Esempio n. 2
0
 private void Graph_Paint(object sender, PaintEventArgs e)
 {
     if (BaseGraph != null)
     {
         using (Bitmap bmp = new Bitmap(this.Width, this.Height, PixelFormat.Format24bppRgb))
             using (WinFormGraphDrawer drawer = new WinFormGraphDrawer(MainPanel.CreateGraphics(), Graphics.FromImage(bmp), bmp))
             {
                 BaseGraph.DrawFullGraph(drawer);
             }
     }
 }