About GDIPlus output to Bitmap
Posted: Sun Sep 13, 2009 1:53 am
Hi:
I just write a simple program.
It is fine to using GDIPlus to smooth te edge.
But when I add the red line code want to output to bitmap file.
Error happened.
procedure TForm1.Button1Click(Sender: TObject);
var g:TGDIPlusCanvas;
begin
g:=TGDIPlusCanvas.Create;
PieChart.Canvas:=g;
g.AntiAlias:=True;
g.AntiAliasText:=False;
PieChart.SaveToBitmapFile('B.bmp');
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues();
end;
I just write a simple program.
It is fine to using GDIPlus to smooth te edge.
But when I add the red line code want to output to bitmap file.
Error happened.
procedure TForm1.Button1Click(Sender: TObject);
var g:TGDIPlusCanvas;
begin
g:=TGDIPlusCanvas.Create;
PieChart.Canvas:=g;
g.AntiAlias:=True;
g.AntiAliasText:=False;
PieChart.SaveToBitmapFile('B.bmp');
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues();
end;