Wrapper class for WIA/TWAIN for a C# application? [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a wrapper class somewhere for WIA/TWAIN functionality in a C# application?
Every search I make points to the same old 2001 CodeProject page, there has to be something new out there, right?
Maybe I'm not looking in the right place. :P
I need something really simple, like:
Image myImage = wiaWrapper.GetImageFromScanner();
Done and done.
Any guidance?

TwainDotNet
I've wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a GitHub project.
I've cleaned up the API a bit, added WPF support and several people have added other improvements. I've tried to keep the API simple but it is still a bit more complicated that what you've got there.
Also this question has some other options: .NET Scanning API

Besides TwainDotNet maintained by Luke, I have recently noticed NTwain on NuGet (project page on Bitbucket).

Disclaimer: I work for Atalasoft
We publish DotTwain, which is a .NET TWAIN SDK. It's royalty-free and is used in InspectorTWAIN.com to help certify TWAIN drivers (we're members of the TWAIN working group).
Our product is a .NET Assembly that wraps interop calls.
You could also take a look at EZTwain from Dosadi, which is free. I don't know how native the .NET support is, but they have a way of calling from .NET.

As for a WIA C# wrapper, I came across ScanWIA on Codeplex. It doesn't have a whole lot of documentation. However, reading the source code might help.

Related

Any way to parse Less in .net? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Last day in job I got pretty hard task. My task is to make new theme for our project (website). New theme should be rewritten to be fully responsive (actually it isn't). I have decided to use Bootstrap framework, because it is seems to be pretty nice, easy to learn and have good documentation with examples.
Today after reading most of documentation I tried to implement this. The only problem is that I tried to use it's main Less based version (which seems to have better support, cuz is main) to get better customizable themes (each theme can have it's own variables.less file) and I did not found good Less parser that work with .net MVC3.
Using JS to parse Bootstrap in not an option, because some of our customers have pretty old computers (Windows XP + IE8). I have tried to use dotless as a parser, but it had problems to handle Bootstrap, had problems with relative paths (problem with #include instruction) and was unable to load files from different directories (variables.less is in theme directory when rest of Bootstrap is shared).
If anyone can help me I will be very grateful, cuz today I spent ~8h and did totaly nothing.
You could try http://vswebessentials.com/
This nice Visual Studio plugin support LESS out of the box.
(http://vswebessentials.com/features/less)

Is there a Fix implementation running under mono? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there an implementation of the fix protocol running under mono (either free or commercial) ?
I found the following ones, but none indicates if the code it's mono compatible :
QuickFix
VersaFix
Onixs
B2Bits
RA-Cheetah
I tried the 2 open sources solutions :
QuickFix doesn't work on Mono because the .net bindings are developed in C++/CLI, which is not supported by Mono.
VersaFix however does run under mono without any changes, and its performances are quite similar under both platforms.
One possible solution: http://www.fixprotocol.org/discuss/read/adec4479
Other than this, there is nothing specifically designed that I know of, but it does look like each of the engines you mentioned does have a separate forum or mailing list you could try.
I can tell you that the way QuickFix is designed can be a real pain due to the way is uses identical classes in separate namespaces for each version of FIX.
Sorry dont have a better answer, good luck.
I suggest using the MoMA tool provided by http://www.mono-project.com/MoMA. I took the first one you specified "QuickFix" and downloaded the Binary version and scanned it with MoMA. The result was 273 Method calls that are not implemented.
It may sound like a lot but just like compiler errors, you fix a couple of things and the number goes down fast, also you have good odds that the parts you need will be fine and with the source for QuickFix available you may be able modify the code as needed or just throw some try{...}catch wrappers around those problem functions that you do need to use.
Of course you can try the same thing on the other available products, I just tried the first one. I believe MoMA will also work on obfuscated code, so you could test it on trial versions too.
I'm looking into Quickfix/N, which claims to be an open-source native .Net port of Quickfix, without native C++ bindings. In fact the API looks very similar to Quickfix/J (The java port). I will update this post if I find it not to be Mono-compatible.

library in c# to compose an image using layers/masks/filters [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for some sort of API similar to Photoshop functionality, I need to create an image using layers/masks/filters programmatically.
An example: I know how to make a nice button in Photoshop, there is a sequence of simple actions. What I want is to automate this process and generate an image of the button on the fly with a few input parameters.
I think I am not the first one who came up with such idea, there must be some library out there that does this thing. Unfortunately I cannot find anything.
Thanks!
You failed to mention if the library needs to be free/open source or if commercial libraries are acceptable but one of the best out there is GdPicture.NET. I doubt you'll find anything free that is remotely comprehensive but a good free one is Filters library (LGPL).
i don't think there is an API like this
but there is free open source software which is Paint.net
get it here
http://www.getpaint.net/download.html
see source code here
http://www.afterdawn.com/software/source_codes/paint.net.cfm
hope it helped
GDI+ in .NET?
Although I haven't used them you could take a look at:
Emgu CV: http://www.emgu.com/wiki/index.php/Emgu_CV
or OpenCvSharp : http://code.google.com/p/opencvsharp/
ImageMagic have layers support http://www.imagemagick.org/Usage/layers/ and there is Net wrapper

.NET API for HID (USB)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there an API in .NET (C#) for using USB HID (human interface) devices?
HidLibrary wraps up all the P/Invoke calls for you. But no, it doesn't look there are any nice framework APIs for dealing with USB devices.
Here's mine little library for dealing with HID devices.
It might be useful, especially when you are trying to communicate using raw HID reports. I've also included a simple demonstration of how to use it.
There's nothing direct or high-level. There are some things you can do through the managed WMI API, but I've personally found a lot of WMI interaction with hardware to be cryptic at best and requiring a lot of trial-and-error to get it to do what you want.
Someone on The Code Project has developed a .NET component for USB HID you can try out that's probably going to fit the bill better than WMI.
I would suggest you follow this example instead. It was invaluable in getting me up and running with HiD dev in C#.
I suggest you start here: http://wiimotelib.codeplex.com/
Try looking at this: Simple HID Library. The main page has a list of other open source libraries.
Take a look at this library on Google Code:
C# USB HID driver
I was also searching for it. I'm using the code I found here:
http://janaxelson.com/hidpage.htm

Fax barcode recognition software to integrate in a c# application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
My application is preparing a cover-sheet for submitting documents by fax. I identify the batch by printing a Code39 on it.
The incoming faxes are received as tif files and my small c# service is polling for new faxes and calling a decoding function.
Currently I use a Win32 dll to recognize the barcode (QSbar39) and I am facing some problems with it - timeouts, hangs, errors etc. which are painful to handle.
I'd prefer the have some free .Net component or an open source class to integrate.
Whould you take a different approach? What tool do you use?
Many thanks for your answers!
BarBara is an open source barcode recognition library. It certainly isn't perfect, but I have gotten it to work (if I remember it needed some twiddling to get it to compile in VS2008) pretty well.
I've used this java libarary with good results, and have gotten it to compile in .Net with minimal effort. It's been around for a while and works pretty well. It had some minor issues with EAN codes, but that has probably been resolved now.
http://barbecue.sourceforge.net/
I'm not sure there is anything available free or open source, but VintaSoftBarcode.NET Library is pretty cheap and did the job for me on a recent project.

Categories

Resources