Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 479
Ovi Avatar asked Oct 28 '08 19:10

Ovi


People also ask

Can a scanner convert pictures to data?

The Best Picture Scanner to Digitize Photos If you want to convert your photos to digital copies at home, the best way to scan photos is by using a flatbed scanner. They are much less likely to damage your photos. They're also compact and will generally only require an ordinary laptop or computer to function.

How do you scan information and get a picture?

Scan a photo To start the scan, hold your phone directly above a photo. Tap the button to take a picture. It'll automatically save to your device. Move your phone around to get the circle over each of the 4 dots.

How do I scan as a JPEG?

Place documents face down on the printer or scanner surface. Align photo within the arrows or grids on the device. Close the lid if there is one. Press scan on the scanner or use the scanning program on your computer.


1 Answers

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

like image 92
Mark Cidade Avatar answered Oct 02 '22 11:10

Mark Cidade