[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234567[8]910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:55:31 02/20/01 Tue
Author: Michel
Subject: Re: Keeping TWAIN interface loaded
In reply to: Michael Mount 's message, "Keeping TWAIN interface loaded" on 11:58:00 02/20/01 Tue

Hi Mike,

Envision is currently not implemented that way. The TScanner.Acquire method, opens the user interface, scans the image (or images on multipage scanners or cameras), then closes the user interface. Here is the section of code in .Acquire (the formatting is quite bad on the forum):

if not CallTriplet( @FTwainData.SourceId, @FTwainData.AppId,
MSG_ENABLEDS, @TwainUI, nil, FTwainData.DsmEntry) then
raise ETwainError.Create('Unable to enable twain source.');

ProcessImages( AcquireEvent,
@FTwainData.SourceId, @FTwainData.AppId,
FTwainData.DsmEntry, CallBackData);
@FTwainData.SourceId, @FTwainData.AppId,
nil, FTwainData.DsmEntry);

If this is very urgent for you and you have the registered version with source, you can try adding three methods:




BeginAcquire could do everything before ProcesImages in the current .Acquire method.

Then, AcquireWithSourceOpen would simply call ProcessImages, and EndAcquire would close the user interface. This requires splitting the current .Acquire method into three methods.

I'll add this to the todo list. Let me know if you try this out.

Best regards,


>I'm using a Canon scanner with Ulead iPhotoPlus to
>scan photos for my company. I want to simplify the
>scan process using D5 and the envision library.
>However, iPhotoPlus keeps the Canon interface loaded
>between scans which saves considerable time when
>scanning multiple photos, where envision seems to
>unload and reload it after each call to Acquire. Is
>there a setting or code change I can make to allow my
>program to work like iPhotoPlus in this regard?
>TIA - Mike

[ Next Thread | Previous Thread | Next Message | Previous Message ]


[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.