Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: TWAIN image acquiring
Started by Jonny Corbett at 11-13-2008 14:02. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  11-13-2008, 14:02
Jonny Corbett is not online. Last active: 11/16/2008 7:32:52 AM Jonny Corbett

Top 500 Posts
Joined on 09-11-2008
Posts 11
TWAIN image acquiring
Reply Quote
Hello,

Is it possible to design or display a user interface other then provided by manufacturer (LTWAIN_SHOW_USER_INTERFACE in uflags parameter)while calling Acquire() method of LTwain class
   Report 
  11-14-2008, 11:35
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: TWAIN image acquiring
Reply Quote
You can't use the Acquire method to show your custom dialog, but you can create your own dialog which calls Acquire(0).  This will give the exact same flow and feel that you are trying to accomplish because when you call Acquire and pass 0 for the flags, it will not show any dialogs and proceed directly to scanning.  Therefore with your dialog you can provide the settings available to the user, then when they click your scan button you set all the capabilities and then call Aquire(0).

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-14-2008, 13:26
Jonny Corbett is not online. Last active: 11/16/2008 7:32:52 AM Jonny Corbett

Top 500 Posts
Joined on 09-11-2008
Posts 11
Re: TWAIN image acquiring
Reply Quote
Hello Greg,

Thank you for the suggestion. I tried with calling Acquire method having uFlags parameter set to 0 but still I am getting the default dialog provided by manufacturer.

Can you please provide an example where we can hide the manufacturer's UI while acquiring image from say webcam.

Regards,
Jonny
   Report 
  11-16-2008, 2:34
Jonny Corbett is not online. Last active: 11/16/2008 7:32:52 AM Jonny Corbett

Top 500 Posts
Joined on 09-11-2008
Posts 11
Re: TWAIN image acquiring
Reply Quote
Hello Greg,

The LTwain library speaks of displaying manufacturer's dialog for capturing the image. Is it possible to alter that dialog or design your own UI.

Regards,
Jonny
   Report 
  11-17-2008, 12:24
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: TWAIN image acquiring
Reply Quote
What is the file version of ltkrn*.dll that you are using?
 
Does this happen for all scanners or only some?  Is it only your cameras?
 
I tried this on a WIA driver for a webcam and I could reproduce the problem, but as far as I know, this isn't a LEADTOOLS problem because I don't think that you can do a TWAIN aquire to a WIA driver without showing the dialog.  I tested this with Twacker and the same thing happens with several webcams; a dialog appears whenever you acquire from a WIA source even if you are choosing to not show the UI.  However, when I used the WIA driver of a Fujitsu fi-5120C scanner, the manufacturer's dialog wouldn't appear.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » General » Example Request... » Re: TWAIN image acquiring

Powered by Community Server, by Telligent Systems