Wrapper class for WIA/TWAIN for a C# application?

delete picture delete · Dec 1, 2010 · Viewed 10.8k times · Source

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?

Answer

Luke Quinane picture Luke Quinane · Apr 14, 2011

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