日期:2014-05-17  浏览次数:21603 次

C# 控制扫描仪 WIA方式 如何可以实现连续扫描?
ImageFile imageFile = null;
            CommonDialogClass cdc = new WIA.CommonDialogClass();
            
            try
            {
                imageFile = cdc.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType,
                                                 WIA.WiaImageIntent.TextIntent,
                                                 WIA.WiaImageBias.MaximizeQuality,
                                                 "{00000000-0000-0000-0000-000000000000}",
                                                 true,
                                                 true,
                                                 false);
            }
            catch (System.Runtime.InteropServices.COMException)
            {
                imageFile = null;
            }