I downloaded JSane-Net to use as a scanning API and encountered the following symptom: After scanning the image was distorted. I downloaded the source and explored it. In JSane_Base_Frame._makeRGBFrame() I found out that the lines in the frame data contained a different number of pixels than returned by pixels per line.
I read a little documentation about sane and dicovered that getting parameters before calling sane_start returns estimated scan parameters. That's why I added dev.getParameters() call in JSane_Net_Frame after the scan data was retrieved and set the received parameters to the frame and the sub-frames. That solved the problem, but it's ugly and I don't know if it is always true.
Since I intend to use this API heavier I would like to know if I could somehow participate in this project, since it seems I will work on my version of code in case I find problems.
Thanks for your time
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded JSane-Net to use as a scanning API and encountered the following symptom: After scanning the image was distorted. I downloaded the source and explored it. In JSane_Base_Frame._makeRGBFrame() I found out that the lines in the frame data contained a different number of pixels than returned by pixels per line.
I read a little documentation about sane and dicovered that getting parameters before calling sane_start returns estimated scan parameters. That's why I added dev.getParameters() call in JSane_Net_Frame after the scan data was retrieved and set the received parameters to the frame and the sub-frames. That solved the problem, but it's ugly and I don't know if it is always true.
Since I intend to use this API heavier I would like to know if I could somehow participate in this project, since it seems I will work on my version of code in case I find problems.
Thanks for your time
Mike
Hi Mike.
I would appricate any help you could give. If you would like to send some patches. I would gratefully look at them, and include them in the main tree.
Maybe in a while, I could give you developer status on my project.
Andi