//算算坐标也可以呀~~ procedure TForm1.Button1Click(Sender: TObject); begin with Image1.Picture do begin Bitmap.Width := 50; Bitmap.Height := 50; ImageList1.Draw(Bitmap.Canvas, (Bitmap.Width - ImageList1.Width) div 2, (Bitmap.Height - ImageList1.Height) div 2, 0); end; end;
procedure TForm1.Button1Click(Sender: TObject);
begin
with Image1.Picture do begin
Bitmap.Width := 50;
Bitmap.Height := 50;
ImageList1.Draw(Bitmap.Canvas,
(Bitmap.Width - ImageList1.Width) div 2,
(Bitmap.Height - ImageList1.Height) div 2, 0);
end;
end;