Questions tagged [twaindotnet]

Twain Dot Net is a TWAIN image scanner API library for the .net platform

Twain Dot Net is a TWAIN library for the .net platform. It is based off the code from Thomas Scheidegger's article .NET TWAIN image scanner

See http://code.google.com/p/twaindotnet/

22 questions
0
votes
1 answer

Detect TWAIN Duplex

Using TWAIN to capture images from a scanner, I'm trying to determine if the open scanner has duplex scanning enabled. I know that if I use the DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT triplet to fetch the CAP_DUPLEX capability, then it will tell…
Kevin Herrick
  • 413
  • 1
  • 6
  • 16
0
votes
0 answers

C# Application, unable to delete image because the system has it locked

I have the following block of code: resultImage = args.Image; int fileCount = Directory.GetFiles("C:\\ImagesFolder\\").Length; temp_num = fileCount; string new_num; if (temp_num < 10) new_num = "000" + temp_num.ToString(); …
dmr
  • 9
  • 2
0
votes
1 answer

How to implement Scanning functionality using Twain in ASP.Net

I have to implement the scanning functionality in ASP.Net MVC. After googling, I found that it is possible from TWAIN API which will support most of the drivers. References: 1.Link 1 2.Link 2 Could anybody share some sample code for an ASP.Net MVC…
Chiranjeevi
  • 161
  • 1
  • 4
  • 22
0
votes
2 answers

Setting Scanner dpi with TWAINDotNet: setting dpi >1200 fails

I am trying to use the TWAINDotNet API to control an Epson Scanner. I have almost everything working, but I can't set the dpi properly. If I set the API at 300, 600 or even 1199 dpi, the scanner works as expected. Unfortunately when I try to set…
0
votes
1 answer

twain ocr function returns empty byte

i have the below code: ddlResultFormat.Items.Add("Text") dynamicDotNetTwain1.LoadImage("C:\Users\elj\Desktop\3b072e9b-76b4-4776-bd3c-5984074d8ecd.png") Dim r =…
User7291
  • 1,095
  • 3
  • 29
  • 71
0
votes
1 answer

Setting default TWAIN data source without using API UI menu

Using the twaindotnet library in C#, I'm wondering if there's a way to set the default datasource using the library. As a feeble attempt, I've tried adding a SetDefault method to the DataSource class of twaindonet, like this public static void…
yu_ominae
  • 2,975
  • 6
  • 39
  • 76
-1
votes
1 answer

TWAIN video capturing

I tried to implement a video capture program in c# with TWAIN and a Leica DFC295 camera. The problem I have is the Twain lib on internet only allows me to capture an image from the camera and is not able to capture the video directly from the…
1
2