473,385 Members | 1,256 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,385 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 12850
..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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.