Copy chart image to memory
Posted: Tue Jan 20, 2009 7:43 am
Hi,
My app contains a chart whose data is updated in real-time. In some corner of this app, I need to display a copy of this chart on graphics panel (aka canvas). This must be done several times per second.
Therefore I need to copy the image of the chart into an internal bitmap. NOT a file! (Well, saving a bitmap to file worked as a proof of concept but is not acceptable as a long term solution. Not efficient enough).
I have some old Delphi sample code that uses. But I can't find this method in TChart .NET v3.5. The closest thing I could find is:
How can I use these 2 overrides? Am I on the right track?
TIA,
My app contains a chart whose data is updated in real-time. In some corner of this app, I need to display a copy of this chart on graphics panel (aka canvas). This must be done several times per second.
Therefore I need to copy the image of the chart into an internal bitmap. NOT a file! (Well, saving a bitmap to file worked as a proof of concept but is not acceptable as a long term solution. Not efficient enough).
I have some old Delphi sample code that uses
Code: Select all
MyChart.TeeCreateBitmap()
Code: Select all
TeeChart.Export.ImageExportFormat.Save(stream [, bitmap,width,height])
TIA,