This project has moved. For the latest updates, please go here.

GetImage problem

Sep 8, 2016 at 10:09 AM
Hello Saraff!

I use your twain dll in my .net scan project. I tested it on hp, canon scanners, but when I work with opticbook 3600 scanner, i can't get scanned images with twain32.GetImage() (the list is empty), but all other functions (set brightness, contrast, colormode) work well.
what could be the problem?
Sep 9, 2016 at 7:51 PM
Hello, stefi83.
Try use a Twain32.EndXfer event instead a Twain32.GetImage() method.
Sep 14, 2016 at 7:00 AM
Edited Sep 14, 2016 at 7:02 AM
Hello Saraff! I tried your tip with opticbook, it doesn't work. The EndXfer event doesn't run. When I used older version, the getimage() worked, but the scanned picture was wrong. The picture is cut off in the middle, and replaced the right and left side,

And I have a new problem. There is a Ricoh papercopier machine in my workplace. If I use it. the new function of set colormode (_twain32.Capabilities.PixelType.Set(TwPixelType.BW);) throws an exception, If I use other devices, there is no such error
Sep 14, 2016 at 2:31 PM
Hello, stefi83.
Try download latest source code.
Check value of a XferMech capability.

Probably, your scanner does not support the type of pixels BW. Try invoke a _twain32.Capabilities.PixelType.Get() to get supported values.
Marked as answer by SARAFF on 9/24/2016 at 8:21 AM