by danebyers » Fri Mar 21, 2008 1:53 am
I'm sure this is a basic problem that is my fault. I'm trying to scan to a PDF, everything I scan in BW is negative (black background). The example twain_sample program runs fine in TWTP_RGB, but when I try TWPT_BW it also does the same thing (makes the image negative). I can get around the issue by reading twaingetcurrentpixelflavor and if it's "0' setting it to "1" with twainsetcurrentpixelflavor, but I'm not sure that's the right way to do it.