I would like to create a picture of the ILPanel and copy it to the clipboard or save to disk. Unfortunately, I always get a white image.
Code:
Bitmap bitmap = new Bitmap(ilpnlChart.Bounds.Width, ilpnlChart.Bounds.Height);
ilpnlChart.DrawToBitmap(bitmap, ilpnlChart.Bounds);
Clipboard.SetImage(bitmap);
// TEST
bitmap.Save(@"C:\Temp\chart.jpg");