var
InIFileHandle: TInIFile;
ImageFilePath: String;
Try
InIFileHandle := TiniFile.Create(ExtractFilePath(Application.ExeName)+'test.ini');
ImageFilePath := IniFileHandle.ReadString('SystemPath','ImagePath','');
Image1.Pictrue.LoadFormFile(ImageFilePath);
finally
InIFileHandle.Free;
end;
test.ini文件
[SystemPath]
ImagePath = D:/1.jpg