I have an issue when exporting pictures (bmp) from a chart.
It happens some times (no steps for reproduction available) that when using the ".SaveToBitmapFile()" function, TChart (or whatever) stores completely black pictures.
The charts to be exported are in background, sometimes on different Tabs.
My project uses 4 charts, and each of them sometimes creates this error, but not always.
The black pictures have the correct sizes, but not colored pixels.
Any ideas on how to solve this ?
Code: Select all
{ 1st chart }
chartFlange2D.SaveToBitmapFile(Path + lName + 'Chart2D.bmp');
{ 2nd chart }
tmp:= TBMPExportFormat.Create;
ChartP.Repaint;
tmp.SaveToFile(Path + lName + 'Chart3D.' + tmp.FileExtension);