|
C# Sample: Acquire and save to BMP file |
Top Previous Next |
|
The following C# example is all that is required to do the following:
___________________________________________________________
using DynaRithmic; //.... [STAThread] static void Main() { int TwainOK = TwainAPI.DTWAIN_IsTwainAvailable() if ( TwainOK == 1 ) { TwainAPI.DTWAIN_SysInitialize(); TwainAPI.DTWAIN_TwainSave("-f test.bmp"); TwainAPI.DTWAIN_SysDestroy(); } }
For C#, the DynaRithmic.TwainAPI class found in the file DTWAIN32.CS is a class wrapper for the DTWAIN functions. Note that it is as simple as calling five DTWAIN functions to get the job done.
|