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

About scaned Image is Error result

Jul 21, 2014 at 6:54 AM
Edited Jul 21, 2014 at 7:16 AM
Hey Saraff, I use saraffTwain, scaned invoice image,but it look like is very bed, it cuted.

look at :

Image

Way,how can i fix it?
Jul 21, 2014 at 7:14 AM
that image is use native

If i use scantype is memory the image is view this:

Image
Jul 21, 2014 at 7:17 AM
online waiting>>>>>>>>
Coordinator
Jul 21, 2014 at 7:58 AM
Hello, JohnnyLeung!
The image quality depends only on the scanner. You can use the brightness capability and / or the contrast capability.
//Brightness
if((this._twain32.IsCapSupported(TwCap.Brightness)&TwQC.Set)!=0) {
    this._twain32.SetCap(TwCap.Brightness,0f); //Allowed Values: -1000f to +1000f; Default Value: 0f;
}

//Contrast
if((this._twain32.IsCapSupported(TwCap.Contrast)&TwQC.Set)!=0) {
    this._twain32.SetCap(TwCap.Contrast,0f); //Allowed Values: -1000f to +1000f; Default Value: 0f;
}
On the second question. You correctly identified the row width of the image. Therefore, it is distorted (row width must be aligned on 4-byte boundary).
Marked as answer by JohnnyLeung on 7/22/2014 at 10:07 PM
Jul 21, 2014 at 3:20 PM
first question same to second question , different is first scan use native ,second use memory ,first is error . First image left to right is right:)

发自我的 iPhone 8s

Coordinator
Jul 21, 2014 at 5:32 PM
Edited Jul 21, 2014 at 5:34 PM
You can save the image as bmp-file (for native mode, memory mode and file mode) and send to me.
Jul 23, 2014 at 6:07 AM
THX,Saraff

this error is Fix.
use your plan.
Coordinator
Sep 14, 2014 at 8:46 AM
Hello, JohnnyLeung!
Try latest source code. Most likely, the bug was fixed.