You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
In one of my scanning devices, I was getting no image transferred when I sent the scan request through TwainDotNet, even though the device itself did the scanning.
It looks like my scanning device is setting _bitmapInfo.XPelsPerMeter = 0 and _bitmapInfo.YPelsPerMeter == 0, so the call to SetResolution fails with 'Invalid Parameter'.
Fixing it is trivial by skipping the call or setting some sensible default if those fields are set to zero.
Thanks, throwaway1290304032
The text was updated successfully, but these errors were encountered:
Hi,
In one of my scanning devices, I was getting no image transferred when I sent the scan request through TwainDotNet, even though the device itself did the scanning.
After some guesswork I found the offending line:
It looks like my scanning device is setting
_bitmapInfo.XPelsPerMeter = 0
and_bitmapInfo.YPelsPerMeter == 0
, so the call to SetResolution fails with 'Invalid Parameter'.Fixing it is trivial by skipping the call or setting some sensible default if those fields are set to zero.
Thanks, throwaway1290304032
The text was updated successfully, but these errors were encountered: