twain/twain-cs

Two image bugs found on Twain driver

Opened this issue · 2 comments

  1. The output image is seriously skewed:
    a. TWAIN-CS application is performing memory transfer to acquire images.
    b. TWAIN driver transfers uncompressed bmp image.
    c. Buffered Memory transfers provide no embedded header information.
    d. The image transfer is complete and success from TWIAN driver.
    e. TWAIN-CS application is recreating this image at application side as TIFF image.
    f. Application is creating a TIFF header and attaching to the file.
    g. This saved TIFF image is skewed.
  2. Only one image can be saved after a multiple scanning.
    a. TWAIN-CS application is resetting transfer of rest of the images.

Can I expect a quick fix?

My advice would be to not use this repository for actual development. It is not updated very often and is meant to serve as an example. There are other open source libraries available in .NET. you should be able to find them pretty quickly.

I would have agreed with this as recently as a month ago (and I wrote the silly thing). However, I have recently added the twain certification tool, and that has resulted in a massive improvement to the project. It avoids using the toolkit, which seemed like a good idea at the time, but turned into a mess. The cert tool is interactive and scripted, and comes with a ton of scripts. If you're open to the idea, please give it a shot and let me know how it turns out. I will be responsive to feedback, at least for the next month.