PNG Export
Posted: Thu Apr 06, 2006 3:31 pm
The PNG export of a chart to clipboard or file is quite easy. But is it possible to write some more information to the canvas before exporting it?
Example.
I have a FastLine series with cursor. I'd like to export the chart and the numeric information for cursor x and y position. To prepare this for Bitmap export I do
Now I access the BMP->Canvas, enlarge it, write some text under the chart etc.
Can I do something similar with TPNGExportFormat without drawing all to the visible chart? Can I assign a BMP to a TPNGExportFormat? There is a Bitmap() function for TPNGExportFormat with explanation
Example.
I have a FastLine series with cursor. I'd like to export the chart and the numeric information for cursor x and y position. To prepare this for Bitmap export I do
Code: Select all
Chart1->CopyToClipboardBitmap();
Graphics::TBitmap* BMP = new Graphics::TBitmap;
BMP->Assign(Clipboard());
Can I do something similar with TPNGExportFormat without drawing all to the visible chart? Can I assign a BMP to a TPNGExportFormat? There is a Bitmap() function for TPNGExportFormat with explanation
How can I set the bitmap used by the PNGExport? Bitmap() doesn't accept a parameter.Sets or returns the bitmap used by the PNGExport