If you want to save images from a scanner using Delphi 7, you will need to make use of an ActiveX code implementation. For that, there is a library available called Delphi Twain. On the official website, you will have everything you need to get the job done, as the archive contains the open source code and a CHM to get you started.