|
Hi, I am in the process of demoing the TWAIN interface. Having just downloaded the v15 demo. Developing in VS2005 VB.NET Dotnet framework 2.0
I do have it working to some extent.
However I have been trying to set the ImageBrightness.
I have been using the vbTwainHighDemo as a starting point and the sample is having problems.
I call up the template and it displays the settings. On a Lexmark the brightness and contrast value is showing up as decimal values, which seems incorrect. i.e -3.9999847412109375 I have two HP scanners that both show a range of 1000 to -1000 with no decimals
I click, Okay, the check the errors and it notes that it failed. (some other settings fail also i.e. contrast)
In the SetBrightnessCapability sub
1) the .selecteditem is being returned instead of the .selectedvalue 2) Brightness is being defined as a single 3) the session.imageeffects.brightness looks to be a single
As I have been totally unable to get that method to work.
I found the twaincapability way to do it using the onevaluecapability. I've got two HP scanners where this works with Brightness as an Int32 with positive and negative numbers. Both HP Returns a range of 1000 to -1000 I've got a Lexmark x2690 w/scanner that works with this method with INT32 positive numbers, but not negative.
1) Any comment on my comments on the VBTwainHigh sample program?
2) Any idea on why the Lexmark is returning decimals and how to work around it?
Thanks
Mike
|