7

Is there a wrapper class somewhere for WIA/TWAIN functionality in a C# application?

Every search I make points to the same old 2001 CodeProject page, there has to be something new out there, right?

Maybe I'm not looking in the right place. :P

I need something really simple, like:

Image myImage = wiaWrapper.GetImageFromScanner();

Done and done.

Any guidance?

4 Answers4

8

TwainDotNet

I've wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a GitHub project.

I've cleaned up the API a bit, added WPF support and several people have added other improvements. I've tried to keep the API simple but it is still a bit more complicated that what you've got there.

Also this question has some other options: .NET Scanning API

Community
  • 1
  • 1
Luke Quinane
  • 16,447
  • 13
  • 69
  • 88
  • Well done! Any plans of making TwainDotNet available via [NuGet](http://www.nuget.org)? – CodeFox Jan 07 '14 at 16:57
  • 1
    @CodeFox unfortunately I'm not actively working on the project any more. I'm happy to accept a pull request though ;-) However, NTwain looks more active at this point. – Luke Quinane Jan 13 '14 at 12:53
3

Besides TwainDotNet maintained by Luke, I have recently noticed NTwain on NuGet (project page on Bitbucket).

CodeFox
  • 3,321
  • 1
  • 29
  • 41
2

Disclaimer: I work for Atalasoft

We publish DotTwain, which is a .NET TWAIN SDK. It's royalty-free and is used in InspectorTWAIN.com to help certify TWAIN drivers (we're members of the TWAIN working group).

Our product is a .NET Assembly that wraps interop calls.

You could also take a look at EZTwain from Dosadi, which is free. I don't know how native the .NET support is, but they have a way of calling from .NET.

Lou Franco
  • 87,846
  • 14
  • 132
  • 192
  • I've visited the DotTwain page but I can't find pricing anywhere. Any links you can provide on pricing please? –  Dec 01 '10 at 12:21
  • Go to the Buy page: http://www.atalasoft.com/buy/dotimage -- the current price is $525 for 1 SDK. Additional ones are $175. You can use DotImage Photo for free to process the images or use .NET Image/Bitmap. No runtime-royalties. – Lou Franco Dec 01 '10 at 13:11
0

As for a WIA C# wrapper, I came across ScanWIA on Codeplex. It doesn't have a whole lot of documentation. However, reading the source code might help.

Amadeus Sanchez
  • 2,375
  • 2
  • 25
  • 31