A
adritab
I am using the WIA 2.0 Automation library to connect and grab images
from a WIA compatible flat bed scanner like CanonScan Lide70.
My requirement is to detect and grab only the image on the flat bed.
Currently I am able to do so in 2 steps, viz, clicking on the
'Preview' button on the default WIA.CommonDialogClass, which detects
the image and then use the 'Scan' button to scan the relevant image
using the ShowTransfer method.
If I simply do a 'ShowTransfer' without the preview, I get a complete
scan of the flatbed and not just the relevant region.
Is there a simpler way to not display the WIA.CommonDialogClass at
all, grab the relevant image region and scan it using ShowTransfer?
Basically, I don't want any user interaction for setting scanning
properties.
I am using MS Windows XP, SP2.
Thanks.
from a WIA compatible flat bed scanner like CanonScan Lide70.
My requirement is to detect and grab only the image on the flat bed.
Currently I am able to do so in 2 steps, viz, clicking on the
'Preview' button on the default WIA.CommonDialogClass, which detects
the image and then use the 'Scan' button to scan the relevant image
using the ShowTransfer method.
If I simply do a 'ShowTransfer' without the preview, I get a complete
scan of the flatbed and not just the relevant region.
Is there a simpler way to not display the WIA.CommonDialogClass at
all, grab the relevant image region and scan it using ShowTransfer?
Basically, I don't want any user interaction for setting scanning
properties.
I am using MS Windows XP, SP2.
Thanks.