简体   繁体   中英

get image from scanner

How do you get a image from the scanner using .NET (C#) on Vista? Preferably to have the possibility to set the DPI.

There are a few controls on the market that do this, but they don't seem to work very well.

You can P/Invoke into twain_32.dll, like with the CodeProject sample at http://www.codeproject.com/KB/dotnet/twaindotnet.aspx .

There's also Window Image Aquisition automation in wiaaut.dll, for which you get an automatically-generated wrapper as in the Coding4Fun sample at http://blogs.msdn.com/coding4fun/archive/2006/10/31/912546.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM