Tattakashi123 / t

Automatically exported from code.google.com/p/twaindotnet
0 stars 0 forks source link

Acquiring more than one image with ADF and no UI generate invalid bitmaps #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enhanced algorithm in TestApp project's form to save more than one
scanned image.
2. Put two or more pages in the scanner ADF. 
3. Start acquiring images, without using UI and with ADF enabled.

What is the expected output? What do you see instead?
The first image is scanned alright, but the second and nexts images are
unreadable, black and white, as the bitmap was composing taking bits randomly.

What version of the product are you using? On what operating system?
Last source available, Windows XP SP2, Visual Studio 2008 SP1.

Please provide any additional information below.
Using TWAIN and the ADF with other apps (eg. Photoshop), all transfered
images are OK. I'm using a HP LaserJet M1522n.

Original issue reported on code.google.com by diegoz...@gmail.com on 21 Jul 2009 at 1:01

GoogleCodeExporter commented 8 years ago
Hi Diego,

I'm not really sure what would cause the problem you are seeing. I've tested my 
scanner with this code and all image render correctly. 

I've added some extra logging to detect null image pointers and also to output 
the 
details of the bitmap info header. If you try the code and it outputs anything 
strange it might be a good starting point. Here is an example output from my 
scanner:

  s:40 w:2550 h:3509 p:1 bc:24 c:0 si:26850868 xpels:11811 ypels:11811 cu:0 ci:0

Thank,

Luke

Original comment by luke.qui...@gmail.com on 29 Jul 2009 at 12:52