twain / twain-cs

A C# interface for TWAIN
165 stars 66 forks source link

Two image bugs found on Twain driver #38

Open hzh-hzh opened 4 years ago

hzh-hzh commented 4 years ago
  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?

mattzirkle commented 4 years ago

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.

mlmcl62 commented 4 years ago

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.