|
发表于 2020-1-7 16:54:01
|
显示全部楼层
uses GDIPAPI, GDIPOBJ;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
g: TGpGraphics;
p: TGpPen;
begin
g := TGpGraphics.Create(Image1.Canvas.Handle);
p := TGpPen.Create(aclRed, 3);
g.SetSmoothingMode(SmoothingModeHighQuality);
g.DrawEllipse(p, 10, 10, 20, 20);
p.Free;
g.Free;
end;
|
|