PXC 4CAM C# Sample for Win32 Systems

This sample program, PXC_4CAM_CS, shows how to switch among four cameras and display each camera in a separate window. Make note of the "Wait()" command in the program. You need to delay at least two fields for a PXC200-F and probably 4 full frames for a PXC200-L after a camera switch. In most cases, if you are switching cameras, you should use the PXC200-F. Whether you use our sample as a starting point or not, you will need the interface file contained in this package if you want to work in C#.

This is what you need for C# development:
In order to develop a C# application for the PXC200A, you need to have an interface file that redefines all of the PXC200A functions and links the new definitions to the existing PXC200A DLL. As an example, the grab function named “Grab” in the Imagenation PXC200A Color Frame Grabber User’s Guide has been renamed to “PXC200_Grab” for C#. The two functions “Grab” and “PXC200_Grab” do exactly the same things, and hence, you can still rely on all of the information in the user’s guide.

This is what we are giving you in this package:
The interface file containing the following three types of data:

1.The DLL function redefinitions - Redefines all the functions that are explained in the the Imagenation PXC200A Color Frame Grabber User’s Guide and contained in the PXC200A DLLs.
2.Global variable definitions – A set of common static variable names used by the PXC200A API.
3.Classes - Some useful class functions for initializing libraries, displaying images, and reading and writing BMP files. You may want to use these functions as your beginning class library to avoid building one from scratch.

A sample C# program that illustrates the following concepts:
1.Library initialization - Proper initialization of the PXC200A libraries.
2.Display - Done by getting a pointer to the acquired image using the PXC200A FrameBuffer() function and then creating a bitmap by calling the Bitmap() function.
3.Continuous image update - Uses a timer to cause the image window to be continuously updated.

This is how you use it:
Download this package into a directory where you want to work. Unzip it into that same directory. Build the sample and execute it to make sure it works. Then modify it for your application. If you are building a new C# application, you might want to start with our sample code and classes. If you already have an application that you are porting, you may just want to use our interface file.