I update TChart 7 for Delphi 2006 (VCL for Win 32).
My export to GIF done a black image.
Before this update, the image was good.
With TGIFExportFormat.Create do
try
Panel := Chart1;
SaveToFile("C:\file1.gif");
finally
Free;
end;
Thanks for your help,
Franck,
Export TChart to GIF with TChart V7 / Delphi 2006
-
- Newbie
- Posts: 2
- Joined: Tue Mar 16, 2004 5:00 am
Hi Franck,
using the following code should work fine :
using the following code should work fine :
Code: Select all
procedure TForm1.BitBtn1Click(Sender: TObject);
var gif:TGIFImage;
tmpBitmap : TBitmap;
begin
gif := TGifImage.Create;
tmpBitmap:=Chart1.TeeCreateBitmap(clWhite,Rect(0,0,Chart1.Width,Chart1.Height));
try
gif.Assign(tmpBitmap);
gif.SaveToFile('c:\Chart.gif');
finally
tmpBitmap.Free;
end;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com