Scan using WIA Driver - handle to preview image

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top