But the scanner driver interface allows me also to scan multiple images:
However, ImageEnView1.IO.Acquire does not give me back the information how many pages were scanned. If I had that information I could save the multiple scanned pages in a buffer or in a container image file like e.g. TIFF or in a TImageEnMView and then display one of them in ImageEnView1.
So is it possible to get the number of scanned pages?
That's not really practical from within ImageEn (TImageEnIO is attached only to a TImageEnView, whereas TImageEnMVIO is attached only to a TImageEnMView).
However you can do it in your application code without difficulty.
Multi-page scanning with splitting via barcodes. I scan in an internal TImageEnView and then forward the scanned images to one or more instances of TImageEnView or TImageEnVect.
In the TImageEnMView.ImageUserPointer, all existing images are marked beforehand, so you can easily find out which the newly scanned images are.