Thanks! I figured that out already. However I have another issue. I want to save each page into a single file as soon as the scanner finishes scanning that page in. So I used the AfterAcquireBitmap event. The only function that I see is "ImageEnMView1->MIO->SaveToFile()", which saves all the existing pages into the file. How can I save each page into a single file?
Oh by the way, is ImageEnMView thread safe? In other words, can I have another thread processes the existing pages while ImageEnMView adds more page in the main thread?
quote:Oh by the way, is ImageEnMView thread safe? In other words, can I have another thread processes the existing pages while ImageEnMView adds more page in the main thread?
Depends by what you actually do in the processing thread: you cannot remove pages while others are added. You can only get a bitmap using GetTIEBitmap (and release using ReleaseBitmap), attach to a TImageEnProc (created inside the thread) and process the image.