I would like to hear if there are any other developers who may have some insight.
I am using the following lines of code:
Bitmap bmp = new Bitmap(chartControl.ChartPanel.Width, chartControl.ChartPanel.Height, PixelFormat.Format16bppRgb555); chartControl.ChartPanel.DrawToBitmap(bmp, chartControl.ChartPanel.ClientRectangle); bmp.Save(fileName, ImageFormat.Jpeg);
Can anybody suggest how to make this code save a valid image of the chart?
BTW, the 3 lines of code above were found in some old ninjascript code I found that attached the image to an email. I just want to save it to a file.
Thanks,
Gary Albers
Comment