mixing metafiles and bitmaps
Posted: Wed Aug 17, 2005 10:58 pm
Hello,
I have a small problem. I am creating a pdf file from a bunch of teecharts (about 300 of them). Each tchart has about 20000 points on them. So what is happening, is that each metafile has 20,000 instructions from the drawPointer method. Adobe takes about 20 seconds to render each page (with about 10 plots per page). Its almost unuseable.
What I want to do is create the metafile as follows. Draw all legends, titles, text etc to the metafile so that the text comes out beautiful. Draw the plot values to a bitmap and then when all values are done, draw the bitmap to the metafile. That way I will have high resolution text, and have all the data points in bitmap.
Looking at your internal draw method, there does not seem to be an easy way to do this. the tPointSeries.DrawPointer method uses parentChart.canvas. There does not seem to be an easy place to pass in another canvas to draw the points on.
Do you guys have a suggestion of how I can easily accomplish this?
I have a small problem. I am creating a pdf file from a bunch of teecharts (about 300 of them). Each tchart has about 20000 points on them. So what is happening, is that each metafile has 20,000 instructions from the drawPointer method. Adobe takes about 20 seconds to render each page (with about 10 plots per page). Its almost unuseable.
What I want to do is create the metafile as follows. Draw all legends, titles, text etc to the metafile so that the text comes out beautiful. Draw the plot values to a bitmap and then when all values are done, draw the bitmap to the metafile. That way I will have high resolution text, and have all the data points in bitmap.
Looking at your internal draw method, there does not seem to be an easy way to do this. the tPointSeries.DrawPointer method uses parentChart.canvas. There does not seem to be an easy place to pass in another canvas to draw the points on.
Do you guys have a suggestion of how I can easily accomplish this?