wia

Is it possible to change the maximum WIA scanning resolution?

不羁岁月 提交于 2021-02-10 07:29:51
问题 I have to use the Canon 9000F scanner in a project. I am having some troubles with the TWAIN driver (see: Are memory issues common when scanning 2400 DPI pictures with TWAIN?), so I tried WIA as an alternative, but the built in scanning dialog only allows a maximum resolution of 600 DPI, but I know that at least 1200 DPI should be possible. Is it possible to override these values? Where do the limitations come from? Is this caused by the driver or is this configured somewhere in WIA itself?

Multipage WIA scan (docfeeder) scans 1 page and blocks scanner

老子叫甜甜 提交于 2021-01-28 03:49:32
问题 Using C# (VS2008) and WIA - scanning to TIFF format; When I use the scanner for 1 page on the flatbed or document feeder the method executes without any problem. When I load multiple forms into the feeder the execution halts after scanning the first page (keeping status: "scanning to pc") but does not scan the next page(s). The method returns the stream of the first page and halts - am able to save the stream and everything; just am lost at what to do next... What statement am I missing? What

Scanning with WIA automatic feeder scanner fails for second page

怎甘沉沦 提交于 2021-01-27 04:28:08
问题 I'm trying to scan multiple pages using a scanner which has an automatic feeder. My code is very simple at the moment: WIA.CommonDialog dialog = new WIA.CommonDialog(); WIA.Device device = dialog.ShowSelectDevice(WIA.WiaDeviceType.ScannerDeviceType); WIA.Items items = dialog.ShowSelectItems(device); foreach (WIA.Item item in items) { while (true) { try { WIA.ImageFile image = (WIA.ImageFile)dialog.ShowTransfer(item); if (image != null && image.FileData != null) { dynamic binaryData = image

WIA 2.0 Duplex scanning

杀马特。学长 韩版系。学妹 提交于 2020-01-11 03:30:07
问题 Since Vista, Windows is shipped with WIA 2.0 (wiaaut.dll). According to the following KB article and many of my findings on various forums, duplex scanning is no longer possible using WIA 2.0. Yet, the article mentions the use of native WIA 2.0, what would make duplex scanning possible. (https://support.microsoft.com/en-us/kb/2709992) According to the WIA 2.0 documentation (https://msdn.microsoft.com/en-us/library/windows/desktop/ms630196(v=vs.85).aspx), duplex scanning is possible but using

Cannot read second page scanned via ADF

陌路散爱 提交于 2020-01-03 10:55:10
问题 I have a Brother mutlifunction networked printer/scanner/fax (model MFC-9140CDN). I am trying to use the following code with WIA, to retrieve items scanned in with the document feeder: const int FEEDER = 1; var manager=new DeviceManager(); var deviceInfo=manager.DeviceInfos.Cast<DeviceInfo>().First(); var device=deviceInfo.Connect(); device.Properties["Pages"].set_Value(1); device.Properties["Document Handling Select"].set_Value(1); var morePages=true; var counter=0; while (morePages) {

WIA: no compression when saving files

余生颓废 提交于 2020-01-03 02:58:29
问题 I'm using WIA for scanning images and noticed, that images aren't stored efficiently as SaveFile apparently doesn't make use of compression. Currently I'm using this code: WIA.ImageFile img = (WIA.ImageFile)item.Transfer(WIA.FormatID.wiaFormatPNG); img.SaveFile(path); Is there a way to use WIA for compression, or how else could I save the image using compression? EDIT: Using the following code I was able to decrease file size from 25 to 10 MB. WIA.ImageFile img = (WIA.ImageFile)item.Transfer

WIA's ShowAcquireImage only saves in BMP?

感情迁移 提交于 2019-12-24 00:37:08
问题 I am using the WIA 2.0 library within Delphi XE to automate scanning. I am using the " ShowAcquireImage " function to provide an image to be saved to disc. I want to save the image in a compressed format such as png or jpg, but the library only seems to save in bitmap. Has anyone else seen this problem, and is there a workround? (Apart from saving to disc as a big bmp file, and re-loading into a TJpegImage/TPngImage object, that is). Thanks for any advice PhilW. This the code I am currently

Will a VB6 App Using wiaaut.dll work on Windows Vista or 7?

旧巷老猫 提交于 2019-12-23 21:32:03
问题 I downloaded the Windows Image Acquisition Automation Layer sdk redistributable from Windows and the VB6 app I wrote to capture still images from a DSLR, wia-compliant camera works great on Windows XP. Will the same app work on Windows Vista or 7? Microsoft says, "Windows Image Acquisition Automation Library v2.0 is only supported on Windows XP with Service Pack 1 installed.", but will the APIs work on newer OSs nonetheless? I really don't want to re-write the whole thing in C++ ... Is there

How do I show the Windows photo-printing wizard?

瘦欲@ 提交于 2019-12-22 10:53:58
问题 I found the VB function ShowPhotoPrintingWizard: CommonDialog.ShowPhotoPrintingWizard( _ ByVal Files As VARIANT _ ) As HRESULT How do I call that or get equivalent functionality in Delphi? I'm using Delphi 2010. 回答1: I think it might be this way for a single file: uses ComObj; procedure TForm1.Button1Click(Sender: TObject); var CommDlg: OleVariant; begin CommDlg := CreateOleObject('WIA.CommonDialog'); CommDlg.ShowPhotoPrintingWizard('d:\Image.jpg'); end; Or the similar for multiple files:

Alternatives to WPD/WIA on Windows XP?

与世无争的帅哥 提交于 2019-12-21 05:12:10
问题 WPD does not work correctly on Windows XP (SP1 if that matters), even if Microsoft states it does. Problem with WPD: IPortableDeviceManager.GetDevices call does not find any devices on Win XP while it finds all connected cameras on Windows 7. A few other people had this same problem with WPD not working on XP, no solution: 1 2 I have decided to reimplement the functionality using WIA. Problem with WIA automation/WIA interfaces: WIA automation offers only silly dialogs when interacting with