3×3太小了吧?
procedure TForm1.Button1Click(Sender: TObject);
var
bmp :TBitmap;
begin
bmp :=TBitmap.Create;
bmp.LoadFromFile('f:/图片/图标/4.bmp');
Image1.Canvas.Draw(0,0,bmp);
bmp.Free;
bmp :=TBitmap.Create;
bmp.LoadFromFile('f:/图片/图标/5.bmp');
Image1.Canvas.Draw(20,0,bmp);
bmp.Free;
end;
就是上面的意思了,你自己看看。
Image1.Canvas.Draw(x,y,...)
实际就是改变x,y!!!
var
bmp :array of TBitmap;
i :Integer;
begin
SetLength(bmp,8);
for i :=1 to 9 do
begin
bmp :=TBitmap.Create;
bmp.LoadFromFile(....);
........
bmp.Free;
end;
bmp :=nil;
end;
应该明白了吧???