Delphi 怎样才能清空PaintBox里的图形

2025-01-30 14:00:46
推荐回答(2个)
回答1:

procedure SaveBmpFromPaintBox(pbox: TPaintBox; fn: string);
var
bmp: TBitmap;
r: TRect;
begin
bmp := TBitmap.Create;
bmp.Width := pbox.Width;
bmp.Height := pbox.Height;
try

回答2:

PaintBox1.Refresh