Jon,
I’m not familiar with this library, but one way you could check if the problem is caused by something else (like the Twain device driver, or Twain Data Source Manager) is to test against another library.
There’s a free evaluation you can readily use to test, which is the LEADTOOLS SDK (Disclosure: I work for the SDK’s vendor). You can obtain it from
this page.
The code to scan an image and save it to disk looks like this:
// Acquire image from scanner
TwainSession session = new TwainSession();
session.Startup(this.Handle, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
session.SelectSource(null); // Display Twain select dialog
RasterImage img = session.AcquireToImage(TwainUserInterfaceFlags.Show);
session.Shutdown();
// Save image as PNG file
RasterCodecs codecs = new RasterCodecs();
codecs.Save(img, @"C:\test\output.png", RasterImageFormat.Png, 24);
After you’re done testing, if you decide you don’t need LEADTOOLS, you can simply un-install the SDK.