试试这个。
procedure TmainF.FormPaint(Sender: TObject);
var
X, Y, W, H: LongInt;
ini: TInifile;
fn: String;
s: string;
begin
s:=ExtractFilePath(Application.ExeName);
Ini:=TIniFile.Create(s+'Data/SysSet.INI');
try
Timer1.Enabled:=False;
fn:=ini.ReadString('coverbmp','coverbmp','');
if (fn<>'') and fileExists(fn) then
begin
with Bitmap do
begin
W := Width;
H := Height;
end;
Y := 0;
while Y < Height do
begin
X := 0;
while X < Width do
begin
Canvas.Draw(X, Y, Bitmap);
Inc(X, W);
end;
Inc(Y, H);
end;
end;
finally
ini.Free;
end;
end;