WIA and scanner

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all, and hope you doing well
I try to get images from ADF scanner using WIA and search for couple day and find some solution like this one<br/>

<pre class="prettyprint Dim CD As New WIA.CommonDialog

Dim f As WIA.ImageFile = CD.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WiaImageIntent.ColorIntent, WiaImageBias.MinimizeSize, FormatID.wiaFormatJPEG, False, False)
f.SaveFile(path + ".jpg")
[/code]
Which allow me to scanning one image, and can do loop for it and scan numbers of image but I need to conform the common dialog every image, so how can i pass this ?
the second solution i found was:
<pre class="prettyprint Dim CD As New WIA.CommonDialog
Dim dev As Device

dev = CD.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, False)
Dim img As WIA.ImageFile = CD.ShowAcquisitionWizard(dev)[/code]
<br/>
Which allow all WIA wizard function, so how i can set the scan option and file location so the user dont need to check it every time?
I hope my question is clear and sorry for my bad English language
Thanks



<br/>


View the full article
 
Back
Top