473,545 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

twain drivers

Hi

Can you point me articles concerning
using of twain drivers for grabbing
image from camera.

Thanks
Konrad
Jul 19 '05 #1
3 12860
..NET has no (not yet?) classes for imaging devices...

You have to use [heavy] PInvoke/Interop with the Win32 Imaging APIs or
any (third-party) COM-Components

check my TWAIN C# sample:
http://www.codeproject.com/dotnet/twaindotnet.asp

or for Windows XP only, my WIA Scripting sample
http://www.codeproject.com/dotnet/wi...tingdotnet.asp
(For XP SP1, there is a new WIA-Automation component)

PLEASE NOTE:
my samples just show the very basic Interop technology,
are NOT complete and you have to understand TWAIN / WIA!

And there is 'Managed C++', you can use it to
write wrappers for any classic Win32/C++ code:
http://msdn.microsoft.com/library/en...rp12192002.asp
Or check third-party (I did not test any):
http://www.accusoft.com/imaging/imagegear/igp_about.asp
http://www.accusoft.com/imaging/imag...ig_netbeta.asp
http://www.leadtools.com/home2/VertMkts/LTDotNET.htm
http://www.pegasusimaging.com/twainpro.htm
http://www.data-tech.com/Products/ImageMan/imaging.asp
http://www.cfdev.com/activescan/
http://www.dosadi.com/

--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/
Jul 19 '05 #2
Thanku you very much for answer.
On one of links you point me I have found
well twain driver but is little problem.
I want to grab picture on disk and if I run
example program which call function
acquire there is dialog of my camera displayed
and only from it I can grab image.
I wish that after calling acquire I have
picture on disk.
How to avoid displaing my camera dialog
window?

Thanks
Konrad

"Thomas Scheidegger [MVP]" <sp************ @swissonline.ch > wrote in message
news:#S******** ******@TK2MSFTN GP11.phx.gbl...
.NET has no (not yet?) classes for imaging devices...

You have to use [heavy] PInvoke/Interop with the Win32 Imaging APIs or
any (third-party) COM-Components

check my TWAIN C# sample:
http://www.codeproject.com/dotnet/twaindotnet.asp

or for Windows XP only, my WIA Scripting sample
http://www.codeproject.com/dotnet/wi...tingdotnet.asp
(For XP SP1, there is a new WIA-Automation component)

PLEASE NOTE:
my samples just show the very basic Interop technology,
are NOT complete and you have to understand TWAIN / WIA!

And there is 'Managed C++', you can use it to
write wrappers for any classic Win32/C++ code:
http://msdn.microsoft.com/library/en...rp12192002.asp
Or check third-party (I did not test any):
http://www.accusoft.com/imaging/imagegear/igp_about.asp
http://www.accusoft.com/imaging/imag...ig_netbeta.asp
http://www.leadtools.com/home2/VertMkts/LTDotNET.htm
http://www.pegasusimaging.com/twainpro.htm
http://www.data-tech.com/Products/ImageMan/imaging.asp
http://www.cfdev.com/activescan/
http://www.dosadi.com/

--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/

Jul 19 '05 #3
> How to avoid displaing my camera dialog window?

The TWAIN specification document has:
DG_CONTROL / DAT_USERINTERFA CE / MSG_ENABLEDS (ShowUI == FALSE)
but maybe it doesn't work for all devices.
Note again, you have to understand the TWAIN specifications
to use/extend my samples....


--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4801
by: ren | last post by:
Hello all, I'm looking for a method, to program TWAIN directly via API calls... Because the Twain OCX under Windows from Kodak is very slow... When I scan via software or the OCX, the TWAIN driver reloads everytime, I would like to keep it open, so I can close it when I exit the program. Thanx, Paul
0
1966
by: Mikael Olofsson | last post by:
Hi all! Sorry for this rather lengthy post. It's a long preamble followed by a few questions based on that. Here's my situation: I am trying to write a specialized scanner utility for my own needs, and I want to use the module twain to control my scanner. I haven't used the twain module before, which is most certainly why I'm facing...
4
1922
by: Chuck Rewood | last post by:
Can somebody here tell me how to access TWAIN from web ? I am gonna make a button to call TWAIN however, the twain.h from (www.twain.org) need some handle from hWnd (System.Windows.Form ??) What kind of wrapper or is there any namespace available ? Thanks, Riwut
2
3312
by: samuabreu | last post by:
I'm currently developing an API of Twain for Java. As Twain is implemented in C (and in fact Im writing and calling C methods from the app) I couldn't find a better group to search for twain development related issues. Here's my question: Does anyone know why when I negociate the capabilities ICAP_XRESOLUTION and ICAP_YRESOLUTION I'm getting...
1
2963
by: Diogo Alves - Software Developer | last post by:
Hi, I would like to know if there is any implementation to Twain Drivers. I found something usefull on code project but seems that the developer doesn't trust in his own code, so.... I bet you can imagine.... Well, any hints and sugestions related to this topic can be post here I will appreciate Thanks ;)
3
437
by: Konrad | last post by:
Hi Can you point me articles concerning using of twain drivers for grabbing image from camera. Thanks Konrad
4
9790
by: Dustin Davis | last post by:
I'm hoping there is a TWAIN expert lurking here somewhere :) I'm writing a very customized application. The software will be set up in multiple location and will always have two types of scanners attached to the computer. The scanners are microfilm/fiche and a flatbed. So I've created a scanner setup screen where the user can select the...
3
3323
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm facing what i consider to be a serious problem, because i can't find the solution!!! I've made possible, for the software i'm developing, to aquire images from a scanner using WIA. The problem is that, when i aquire an image in, for instance, photo editor, i have the oportunity to choose between the several drivers availlable for the...
1
8327
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm facing what i consider to be a serious problem, because i can't find the solution!!! I've made possible, for the software i'm developing, to aquire images from a scanner using WIA. The problem is that, when i aquire an image in, for instance, photo editor, i have the oportunity to choose between the several drivers availlable for the...
0
7432
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7689
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6022
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.