Page 1 of 1

CopyToClipboardBitmap() performance

Posted: Wed Jul 18, 2007 1:42 pm
by 9536092
I am using the 7.0.1.4 ActiveX version in VC++. I am using several hidden TeeChart controls (one 2D, one 3D, etc.) to generate bitmap images which I can selectively BitBlt onto the screen at the desired location. I use the CopyToClipboardBitmap() function to have TeeChart generate the bitmap and copy it onto the clipboard which I then read back and BitBlt to the desired screen location.

The CopyToClipboardBitmap() call is taking over 1/2 second to execute for a chart that uses a SurfaceSeries containing 384 x 576 Z values.

Is there some alternative function that I can use that is faster or some way to make CopyToClipboardBitmap() faster?

Thanks

Posted: Mon Jul 23, 2007 7:49 am
by yeray
Hi pdm1999,

I can't think in a better solution than doing it manually for the moment. You should be able to export your chart as an image and then exporting it by yourself to the clipboard. But I'm not sure on how many time will you save.