|
show result on MFC's picture control |
Posted by Tom on Mar-30-2025 15:41 |
|
In the examples, the images are generated by "c->makeChart(jpg);" . Then, the image is read and displayed on the MFC's picture control. Could it be directly displayed on the MFC's picture?
In addition, when the picture is upto 1000x1000, it will take a long time to wait. |
Re: show result on MFC's picture control |
Posted by Peter Kwan on Mar-31-2025 14:30 |
|
Hi Tom,
Would you mind to clarify which "examples" are you referring to?
Since 2006, ChartDirector MFC examples use the CChartViewer MFC Control to display the chart. The code does not output the chart in JPG. It just passes the chart to the CChartViewer control directly for display. Apart from displaying the chart, the CChartViewer also support tooltips, track cursors, zoom/scroll and real-time updates. The display is fast, that's why it can do real-time charts.
Please download the latest version of ChartDirector from our web site, then try the MFC sample code in the Visual Studio solution at the folder ChartDirector/mfcdemo/mfcdemo.sln. The solution contains two projects. The "helloworld" project is the simple and basic example. The "mfcdemo" project demonstrate the features of ChartDirector (all chart types, tooltips, track cursors, zoom/scroll and real-time updates.)
Best Regards
Peter Kwan |
|