Location:
Search - TwainLib.
Search list
Description: 使用TWAIN读取扫描仪的图像。In Windows imaging applications, the most used API for scanning is TWAIN www.twain.org. Unfortunately, the new .NET Framework has no built-in support for TWAIN. So we have to work with the interop methods of .NET to access this API. This article doesn t explain this interop techniques, and good knowledge of the TWAIN 1.9 specifications is assumed! The sample code included doesn t present a finished library, only some essential steps for a minimal TWAIN adaption to .NET applications.-In Windows imaging applications, the most used API for scanning is TWAIN www.twain.org. Unfortunately, the new .NET Framework has no built-in support for TWAIN. So we have to work with the interop methods of .NET to access this API. This article doesn t explain this interop techniques, and good knowledge of the TWAIN 1.9 specifications is assumed! The sample code included doesn t present a finished library, only some essential steps for a minimal TWAIN adaption to .NET applications.
Platform: |
Size: 29696 |
Author: 堂堂 |
Hits:
Description: .NET TWAIN image scanner-Abstract
In Windows imaging applications, the most used API for scanning is TWAIN www.twain.org. Unfortunately, the new .NET Framework has no built-in support for TWAIN. So we have to work with the interop methods of .NET to access this API. This article doesn t explain this interop techniques, and good knowledge of the TWAIN 1.9 specifications is assumed! The sample code included doesn t present a finished library, only some essential steps for a minimal TWAIN adaption to .NET applications.
Details
First step was to port the most important parts of TWAIN.H, these are found in TwainDefs.cs. The real logic for calling TWAIN is coded in the class Twain, in file TwainLib.cs.. As the TWAIN API is exposed by the Windows DLL, twain_32.dll, we have to use the .NET DllImport mechanism for interop with legacy code. This DLL has the central DSM_Entry(), ordinal#1 function exported as the entry point to TWAIN. This call has numerous parameters, and the last one is of variable type! It was f
Platform: |
Size: 2310144 |
Author: dlwxn |
Hits:
Description: 这个类主要用户驱动扫描仪完成扫描功能。谢谢大家的支持-The principal user-driven scanner to complete the scan function. Thank you for your support
Platform: |
Size: 2048 |
Author: 张丹 |
Hits: