[Lazarus] Get JPEG from TAChart in CGI app
Alexander Klenin
klenin at gmail.com
Sun Mar 20 18:58:12 CET 2011
On Mon, Mar 21, 2011 at 03:22, Leonardo M. Ramé <l.rame at griensu.com> wrote:
> lCanvas.CopyRect(0,0,TFPCustomCanvas(lChart.Canvas),lRect);
> After executing the method I'm getting "Control '' has no parent
> window' at the CopyRect line. I'm sure there is another method to copy a
> TCanvas to a TFPCustomCanvas.
Use Chart.PaintOnCanvas instead. See savedemo for an example.
Note that you must give it full TCanvas -- just TFPCanvas is not enough.
--
Alexander S. Klenin
More information about the Lazarus
mailing list