Visual Basic .Net and C#

If you want to write applications with Visual Basic or C#, or any .Net compatible programming language, you can use the WiT Engine for .Net namespace to access the full functionality of WiT for the development of image processing applications, while providing your own end-users with a custom designed GUI.

Once the WiT Engine namespace has been added to your .Net project, it becomes part of your development and run-time environment. The WiT Engine namespace control provides methods to load and run imaging code files (WIC) generated by WiT, display data in pop-up windows or within your application, pass data to and from WiT Engine, etc.

The latest WiT Engine namespace 2.0 (witdotnet2.dll) works with .Net Framework 2.0. The previous WiT Engine namespace version 1.0 (witdotnet.dll) works with .Net Framework 1.1. .Net Framework 1.1 is obsolete. All new applications should use .Net Framework 2.0.

Writing a .Net application consists of the following steps:

  1. Create a new Visual C# or Visual Basic project of type ‘Windows Application’.
  2. Add the WiT Engine namespace to your project:
    1. From the Project menu, select the Add Reference option.
    2. Click Browse tab.
    3. Select the witdotnet2.dll which is located in $WITHOME\bin (bin64 if you need to develop application for x64 platform) from file browser window.
    4. Click OK to close the panel.
  3. Instantiate WiT Engine in the main Form1. Put initialization code in the Load method (usually Form1_Load).
  4. Load WIC after WiT Engine is initialized.
  5. Call appropriate WiT Engine functions in the event methods of various controls.
  6. Put clean up code in the FormClosing method of the main form.

Registering WiT Engine callbacks
Add to global assembly cache
Data Transfer Between Managed and Unmanaged Memory Space
Examples

Previous 

Up