BrightnessMinValue / AutoBright problems
Posted: Fri Aug 06, 2010 2:19 am
I am developing a scanning application in VB.Net and most functions are working fine when connected to the scanner, but I have problems with the following propertys of the Vintasoft.Twain.VSTwain object:
* BrightnessMaxValue
* BrightnessMinValue
* ContrastMaxValue
* ContrastMinValue
* AutoBright
For the max and min values, a watch of the the VSTwain object shows them as {"Unable to cast object of type 'Vintasoft.Twain.Fix32' to type '.9'."}
The AutoBright shows {"Error to get capability value."} and causes an error when running the TwainAdvanced example and getting capabilities for the scanner.
I can manually get the max and min values by using 'GetCap' function and getting the values myself from the CapItems array, but it would be easier if I could use the existing properties.
Is this a known problem, or is there something I need to do first to populate these values? None of the other properties show any problems, only the 5 above.
I'm using Visual Basic 2008 Express edition and the scanner is a Canon ImageFormula DR-2010C
* BrightnessMaxValue
* BrightnessMinValue
* ContrastMaxValue
* ContrastMinValue
* AutoBright
For the max and min values, a watch of the the VSTwain object shows them as {"Unable to cast object of type 'Vintasoft.Twain.Fix32' to type '.9'."}
The AutoBright shows {"Error to get capability value."} and causes an error when running the TwainAdvanced example and getting capabilities for the scanner.
I can manually get the max and min values by using 'GetCap' function and getting the values myself from the CapItems array, but it would be easier if I could use the existing properties.
Is this a known problem, or is there something I need to do first to populate these values? None of the other properties show any problems, only the 5 above.
I'm using Visual Basic 2008 Express edition and the scanner is a Canon ImageFormula DR-2010C