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
 How to get multiple pages from scanner?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Aug 27 2020 :  11:49:52  Show Profile  Reply
I use this code to get an image from my scanner:

ImageEnView1.IO.Acquire


This works well with one single scanned image.

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?

spetric

Croatia
308 Posts

Posted - Aug 27 2020 :  17:04:32  Show Profile  Reply
Hi,

I use MView->MIO->Acquire() to scan multiple pages in TImageEnMView.
I don't know if single view (TImageEnView) can handle multiple pages.
Go to Top of Page

xequte

38616 Posts

Posted - Aug 27 2020 :  19:37:51  Show Profile  Reply
Hi

Sinisa is correct. TImageEnView/TImageEnIO can only be used for single scans. Please use TImageEnMView/TImageEnMIO

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Aug 28 2020 :  02:33:58  Show Profile  Reply
It would be nice if both Single-Page-Scan and Multi-Page-Scan could be done from the same IE routine:

• If the Scan-Result is Single-Page then the scanned image would be viewed in ImageEnView

• Else if the Scan-Result is Multi-Page then the scanned images would be viewed in ImageEnMView
Go to Top of Page

xequte

38616 Posts

Posted - Aug 30 2020 :  23:00:41  Show Profile  Reply
Hi Peter

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.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

prodat

2 Posts

Posted - Sep 03 2020 :  07:27:33  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: