ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Scan multiple pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dcs

USA
26 Posts

Posted - Feb 27 2013 :  22:23:25  Show Profile  Reply
Can somebody please give me some hints on how to do that? I can scan only 1 page at a time now.

Thanks in advance,
H.

DCS

fab

1310 Posts

Posted - Mar 01 2013 :  00:54:26  Show Profile  Reply
You should use TImageEnMView: it handles multiple pages and configures scanner to do so.
Ex:

ImageEnMView1.MIO.SelectAcquireSource();
ImageEnMView1.MIO.Acquire();
Go to Top of Page

dcs

USA
26 Posts

Posted - Mar 01 2013 :  00:59:06  Show Profile  Reply
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?

Thanks in advance.
M.

DCS
Go to Top of Page

fab

1310 Posts

Posted - Mar 04 2013 :  14:09:23  Show Profile  Reply
You could use TImageEnMView.GetImageToFile(pageindex, filename).
Go to Top of Page

dcs

USA
26 Posts

Posted - Mar 04 2013 :  14:58:35  Show Profile  Reply
oh excellent. Thanks a lot.

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?

Thanks,

DCS
Go to Top of Page

fab

1310 Posts

Posted - Mar 13 2013 :  11:00:58  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: