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
 WIA Aquire Tiff as default
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PStadler

Austria
60 Posts

Posted - Jul 17 2017 :  11:05:52  Show Profile  Reply
Hello,

I want to use the WIAScanner example so that automatically a tif (instead of jpg) will be created.

It should be possible to set the filename to P for page + pageNumber.

If I scan two pages at once with A3-Scanner it should be possible to automatically increase the pagenumber by 2.

Where and how could this be achieved?

Sincerely

Peter

xequte

38182 Posts

Posted - Jul 18 2017 :  04:19:32  Show Profile  Reply
Hi Peter

The WIAScanner demo does not automatically save the file at all, so you can just use

ImageEnView.IO.SaveToFile( 'D:\MyScan.jpeg' );

To do it automatically after acquiring use the ImageEnView1.AcquireBitmap event.

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

PStadler

Austria
60 Posts

Posted - Jul 19 2017 :  06:21:38  Show Profile  Reply
Thanks for this information. Now I created aprogram for my scanner. When I press ReadParameters button, it is fine. I can see the actual parameters of the scanner. When I change some parameters in the Dialog and press "Write Parameters" I get an error:
Could not convert variant of type Unicodestring into type (Integer).
The same error i receive if I changed nothing in the dialog.


What does "Take New picture' do?

Sincerely

Peter
Go to Top of Page

PStadler

Austria
60 Posts

Posted - Jul 20 2017 :  06:08:40  Show Profile  Reply
Hello,
This error is happening if I compile the program.
If I use the original exe "Write Parameters" I get another error: "'Invalid argument" and the parameters are not saved.

I use a Plustek OpticPro A320 Scanner. Scanning is working, but the parameters cannot be changed.

Sincerely
Peter

Go to Top of Page

xequte

38182 Posts

Posted - Jul 20 2017 :  06:44:58  Show Profile  Reply
Hi Peter

I cannot reproduce that here.

Have you tried stepping through the code to see where the error is arising.

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

PStadler

Austria
60 Posts

Posted - Jul 22 2017 :  04:11:45  Show Profile  Reply
Hello,

I tried all the examples from Image Acquisition. If I compile them in 32 Bit everything is fine. If I compile then in 64 Bit, my scanner, the Plustek OpticPro A320 is not found.

I installed the Driver for windows 7 64 Bit ultimate.

Sincerely Peter
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: