I'm attempting to do a basic MIO acquire from scanner and saving to disk. In the future I'd like to save to stream, but I thought I'd keep it simple. The problem is, the resulting TIFF files are very small and just a corner of the full page. I thought changing the store type to ietNormal would do the trick, but it's not.
Here's my code
FImageEnMView := TImageEnMView.Create(nil);
try
FImageEnMView.MIO.TwainParams.VisibleDialog := False;
FImageEnMView.StoreType := ietNormal;
FImageEnMView.MIO.Acquire;
for I := 0 to FImageEnMView.ImageCount - 1 do
begin
FImageEnMView.GetImageToFile(i, 'C:\Temp\multi' + IntToStr(i) + '.tiff');
end;
finally
FImageEnMView.Free;
end;