Canvas drawings not shown in BMP image
Posted: Thu May 18, 2006 7:31 pm
I'm drawing some arrows on top of my series using teechart canvas. Then I export the teechart as JPEG or BMP. But the arrows do not appear in the images. What should be done to get the image with the canvas drawings in it?
Function I used for drawing arrow:
m_tChart.GetCanvas().Arrow(TRUE, x, y+20, x, y, 5, 5, 0);
Function I used for creating BMP file:
m_tChart.GetExport().GetAsBMP().SaveToFile((LPCTSTR)fileName);
Some of the posts in the forum suggest putting canvas drawings into OnAfterDraw method. But in my version of teechart, I could not find OnAfterDraw method in any of the .h files.
Function I used for drawing arrow:
m_tChart.GetCanvas().Arrow(TRUE, x, y+20, x, y, 5, 5, 0);
Function I used for creating BMP file:
m_tChart.GetExport().GetAsBMP().SaveToFile((LPCTSTR)fileName);
Some of the posts in the forum suggest putting canvas drawings into OnAfterDraw method. But in my version of teechart, I could not find OnAfterDraw method in any of the .h files.