What's the easiest way to use a connected scanner?
I'm making an application that your typical CRUD scenario. I also need to scan a document and save that image to disc.
I don't really need complex image manipulation, just a simple "c开发者_JS百科all scanner to scan, catch the scanned image" approach.
What's the easiest way to accomplish this on a Windows Form .NET 3.5 c# application?
Thanks.
Windows has a newer api that is called Windows Image Acquisition.
http://msdn.microsoft.com/en-us/library/ms630368%28VS.85%29.aspx
http://10rem.net/blog/2010/01/08/scanning-images-in-wpf-via-wia
If your scanner supports TWAIN, it's the best way to go.
A .Net article on using TWAIN:
http://www.codeproject.com/KB/dotnet/twaindotnet.aspx
This spawned an open source project:
http://code.google.com/p/twaindotnet/
Twain.Net also looks useful:
http://twainnet.cvs.sourceforge.net/viewvc/twainnet/Twain.NET/
Use Twaindotnet, it is simple to use and can be used with Winforms and WPF.
精彩评论