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
 Scanner options, new, add, append, replace, etc?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Fábio Nascimento

Brazil
72 Posts

Posted - May 23 2016 :  10:23:09  Show Profile  Reply
Hi,

I'm moving from Kodak Imaging OCX to ImageEn, on the Kodak components, for scanning options, I have an option to:

1) scan a new document;
2) insert pages into a existing document;
3) append pages into a existing document;
4) replace pages from a start point;
5) replace the entire document with a new one

With the Kodak components, it's just as easy as setting ImgScan.PageOption := 1; where 1,2,3,4,5 are the options available as listed above, and then call ImgScan.StartScan..

Looking at ImageEm demos I found how to insert/append/remove frames on the tiff files by selecting files on disk, I guess it should work for acquiring too, but it's much more complex then set an option.

So my question is what is the best way to acquire from scanner and set how the acquired pages are used.

Thanks!

xequte

38978 Posts

Posted - May 23 2016 :  18:44:59  Show Profile  Reply
Hi Fabio

If you acquire directly into a TImageEnMView then the images are inserted at the selection position, or appended if nothing is selected, so that gives you three options:

1. Clear before acquire to scan as new document
2. Select an image before acquire to insert at a position
3. Clear the selection before acquire to append to the existing document
4. Not supported
5. Is this not the same as #1?

Regarding method 4, there are ways to do this if it is important.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - May 24 2016 :  13:47:54  Show Profile  Reply
Yeah, 5 and 1 are quite the same, but 1 creates a new file and 5 override the existing one.

Have you ever worked with the Kodak Imaging OCX components? I was able to work with the ImgScan (from Kodak) to acquire the images from scanner and show them on the ImageEn. So basically, they are working together at the moment on my application.

So it's not possible to override pages, to use ImageEn I should scan them at the desired point and them delete the ones that are supposed to be replaced?

Finally, how is the best way to get the filename of the displayed image on ImageEnMView? I'm using ImageEnMView.MIO.Params[ImageEnMView.SelectedImage].FileName; cuz I could not find a direct way like ImageEnMView.Filename.

Thanks!
Go to Top of Page

xequte

38978 Posts

Posted - May 24 2016 :  17:11:23  Show Profile  Reply
Hi Fabio

If you do need to replace existing frames you would probably find it easier to use a temporary TImageEnMView/TIEMultiBitmap, acquire into that, and then move the acquired frames into the TImageEnMView.

If the file is loaded you can use:
ImageEnMView1.IO.LastFilename


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

Fábio Nascimento

Brazil
72 Posts

Posted - May 25 2016 :  01:10:10  Show Profile  Reply
Yeah I do need to replace them often, because every document has like 20 pages each and sometimes some of them doesnt scan well, or one or some pages changes and I need to replace them.

Either way I'll need to delete the frames that are supposed to be replaced and them move the new ones into there right?

Cool, I'll use ImageEnMView1.IO.LastFilename them as the file is loaded.

Thanks@
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: