I am trying to set the capability for compression. I check to see if the capability is supported and set it with the following code:
if ((_twain.IsCapSupported(TwCap.ICompression) & TwQC.Set) != 0)
{
_twain.SetCap(TwCap.ICompression, TwCompression.Lzw);
}
I receive a TwainException ("Data parameter out of range."; ReturnCode = CheckStatus; ConditionCode = BadValue) with a StackTrace of at Saraff.Twain.Twain32._SetCapCore(TwCapability cap, TwMSG msg)
at Saraff.Twain.Twain32._SetCapCore(TwCap capability, TwMSG msg, Object value)
at Saraff.Twain.Twain32.SetCap(TwCap capability, Object value)
at WebCapture.Capture.TwainImageCapturer.init(String scannerId, String scannerName, Boolean showConfiguration) in C:\Repos\development\WebCapture\WebCapture.Capture\TwainImageCapturer.cs:line 55
at WebCapture.Capture.TwainImageCapturer.Begin(Action`1 onImageFileAvailables, Action onComplete, String scannerId, String scannerName, Boolean showConfiguration) in C:\Repos\development\WebCapture\WebCapture.Capture\TwainImageCapturer.cs:line 115
I have tried to set other compression values and get varying other issues / errors sometimes on the Acquire. I am using a Fujitsu fi-6140 with the device drivers from the Fujitsu website (http://www.fujitsu.com/global/support/products/computing/peripheral/scanners/fi/software/v9211600.html) Any help with this issue would be much appreciated.
if ((_twain.IsCapSupported(TwCap.ICompression) & TwQC.Set) != 0)
{
_twain.SetCap(TwCap.ICompression, TwCompression.Lzw);
}
I receive a TwainException ("Data parameter out of range."; ReturnCode = CheckStatus; ConditionCode = BadValue) with a StackTrace of at Saraff.Twain.Twain32._SetCapCore(TwCapability cap, TwMSG msg)
at Saraff.Twain.Twain32._SetCapCore(TwCap capability, TwMSG msg, Object value)
at Saraff.Twain.Twain32.SetCap(TwCap capability, Object value)
at WebCapture.Capture.TwainImageCapturer.init(String scannerId, String scannerName, Boolean showConfiguration) in C:\Repos\development\WebCapture\WebCapture.Capture\TwainImageCapturer.cs:line 55
at WebCapture.Capture.TwainImageCapturer.Begin(Action`1 onImageFileAvailables, Action onComplete, String scannerId, String scannerName, Boolean showConfiguration) in C:\Repos\development\WebCapture\WebCapture.Capture\TwainImageCapturer.cs:line 115
I have tried to set other compression values and get varying other issues / errors sometimes on the Acquire. I am using a Fujitsu fi-6140 with the device drivers from the Fujitsu website (http://www.fujitsu.com/global/support/products/computing/peripheral/scanners/fi/software/v9211600.html) Any help with this issue would be much appreciated.