Redraw slow on complex charts
Posted: Tue Mar 24, 2009 3:57 pm
Hello !
I want some "animation/highlighting" in the chart.
For example click on axis -> axis gets red.
This in easy to program. The problem is, that any propery changing forces a complete redraw. This is for large data charts to slow.
So my next idear was to make the animation not in the chart but
with a control (TShape) over the chart.
But moving a control over the chart forces a redraw of the chart, too.
Why uses the InvalidateRect function.
not the yet draw bitmap but redraws the full vector graphic?
Next idear was to copy the chart after every redraw
with TeeCreateBitmap in an image and "animate" this image.
But this is slow, too. TeeCreateBitmap redraws the chart, too.
So my question is how can force that the chart image is fixed
when I mover some controls over it (InvalidateRect per stored bitmap)
or
How can I copy the current show chart in an bitmap very fast.
Thanks
Andreas
I want some "animation/highlighting" in the chart.
For example click on axis -> axis gets red.
This in easy to program. The problem is, that any propery changing forces a complete redraw. This is for large data charts to slow.
So my next idear was to make the animation not in the chart but
with a control (TShape) over the chart.
But moving a control over the chart forces a redraw of the chart, too.
Why uses the InvalidateRect function.
not the yet draw bitmap but redraws the full vector graphic?
Next idear was to copy the chart after every redraw
with TeeCreateBitmap in an image and "animate" this image.
But this is slow, too. TeeCreateBitmap redraws the chart, too.
So my question is how can force that the chart image is fixed
when I mover some controls over it (InvalidateRect per stored bitmap)
or
How can I copy the current show chart in an bitmap very fast.
Thanks
Andreas