473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 12852
..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**************@TK2MSFTNGP11.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_USERINTERFACE / 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
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...
0
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...
4
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...
2
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...
1
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...
3
by: Konrad | last post by:
Hi Can you point me articles concerning using of twain drivers for grabbing image from camera. Thanks Konrad
4
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...
3
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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,...

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.