|
I've been working with your code for the twain stuff, and it's working great, just that for some reason, when I scan in color, the picture will appear slanted like this: / /. Also with grayscale, the whites on the page will appear in gray as well for some reason. So I've decided, why not let java do the job of decoding DIBs (since I work much better in java than c++). So the problem is, how do I do that? I see the twain handle for the DIB...and I kind of see how you get the BITMAPINFOHEADER....so let's say if I want to put all these info and make a bmp binary, but it into a byte array (or char array? not sure if c++ can do byte array or not, or is streaming possible?), and then put this byte array into the JObjectArray to output back to java. How do I do that?? I really want to do this myself, but I've been staring at your C++ code all day, and have no idea how to do it. Thanx for your support!! |