Questions tagged [wia]

Windows Image Acquisition (WIA) is the still image acquisition platform in the Windows family of operating systems starting with Windows Millennium Edition (Windows Me) and Windows XP.

See details on MSDN: Windows Image Acquisition (WIA).

278 questions
0
votes
0 answers

Get all webcams using wia

I want to take photos from webcam using C# application. First of all I'm going to get list of all webcams on PC. I find this example: System.Collections.Generic.List devs = new…
Gleb
  • 1,412
  • 1
  • 23
  • 55
0
votes
1 answer

Reduce size of image after Scan?

I have code that scan file and save it on my path: public ImageFile Scan() { var device = this._deviceInfo.Connect(); var item = device.Items[1]; var imageFile = (ImageFile)item.Transfer(FormatID.wiaFormatJPEG); …
0
votes
1 answer

convert wia item property "Thumbnail Data" to .net image

How can I convert Wia thumbnails to .net image? If I load the property I get an Com-Object, but I don't now how to handle it.
0
votes
1 answer

setting the resolution of scanner in wia in vb.net

Dim im = scan.Items(1) Dim ima As WIA.ImageFile = im.Transfer(WIA.FormatID.wiaFormatJPEG) Dim binaryD = ima.FileData().BinaryData Dim imagedata As Byte() = DirectCast(binaryD, Byte()) …
Sahil Manchanda
  • 9,812
  • 4
  • 39
  • 89
0
votes
0 answers

how to read from feeder using wia library

I have problem in reading all the pages in the feeder using WIA Library. I have a scanner HP scanjet 5590 , scanning from flat is working perfectly. Scanning from feeder works perfectly if the page in the feeder is only one. Now if I have more…
0
votes
1 answer

C# WIA Transfer method locks UI thread

I have a problem which is causing me some headaches. I have a Winform application which shows a very simple dialog to users with just a button: "SCAN". The button's click handler, how could you easily imagine, starts a scan operation using the WIA…
DarioRinaldi
  • 53
  • 1
  • 5
0
votes
1 answer

vb.net custom error handling module

I have written a scanning program in visual basic using wia to scan documents and put them in a specific folder. I would like to add some custom error handling to the project that puts a message box on the screen telling the user the problem and…
Gazza
  • 95
  • 2
  • 9
0
votes
0 answers

0x80004002 exception with wia and vb.net

Hope someone can help with the above error. I have the following code that worked fine with windows xp and a Kodak scanmate 1120 Private Sub BtnScan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnScan.Click Dim img…
Gazza
  • 95
  • 2
  • 9
0
votes
1 answer

C# application using Wia on dotnet 2.0 appear to use Wia not in dotnet 2.0

I have a strange problem. I create a little DLL in C# in order to drive some scanners with WIA. I added as reference the WIA Com object. In my property project, i setted up the framework version to dotnet 2.0 ( and i need to run on 2.0). My problem…
Walter Fabio Simoni
  • 5,671
  • 15
  • 55
  • 80
0
votes
2 answers

Unable to Scan using WIA on Windows 7 x64

Error msg: Could not load file or assembly 'Interop.WIA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. The solution is working fine on Windows XP…
0
votes
0 answers

WIA Scanning throws exception while using ADF Scanner

I am using the ADF Scanner library by Gideon (http://adfwia.codeplex.com/) and have hit a small problem. While I can scan a file it throws an exception when saving. I'll post the full code: private void button1_Click(object sender, EventArgs e) …
Lord Relix
  • 922
  • 5
  • 23
  • 50
0
votes
1 answer

Adding Scanned Images in ListView

I am scanning the images via WIA and saving the images in List. What I want is, I want to save the get the images from the list and show them in the listview. But I am getting a strange problem. When I click Scan button in my c# window application…
Fahad Murtaza
  • 256
  • 2
  • 9
  • 18
0
votes
1 answer

scan a page via WIA in vc++ got an error

I saw this way of coding in Microsoft " WIA tutorial " page but the vc++ doesn't let me to compile it! some errors appear all the time! #include "stdafx.h" #include #include #include bool CreateWiaDeviceManager(…
0
votes
0 answers

C# WIA System.InvalidOperationException

I have a problem with scanning with WIA. public List Scan(string scannerId) { var images = new List(); var hasMorePages = true; while (hasMorePages) { // select the correct scanner…
Paweł Marecki
  • 630
  • 1
  • 9
  • 21
0
votes
0 answers

VB.NET: Windows Image Acquisition 2 duplex scan

I got the following code for duplex scanning which uses WIA2 for communication with scanners. It works perfectly with Fujitsu fi-6130 but there is an issue with Epson GT-S55. The problem is, it saves the second image of the duplex scan blank (in…
David -
  • 2,009
  • 1
  • 13
  • 9