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); } } }
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); } } }