6 function library, Function library – ICP DAS USA IM-100 User Manual
Page 50
6 Function Library
This chapter describes the API for MAVIS IM-30/IM
these functions to develop application programs und
6.0 , Boland C++ Builder 6.0, and C#.NET 2003.
The MAVIS DLL file (IMCamera.dll) is common to u
c,
Boland C++ Builder and C#.NET development language.
For Vis
oland C++ Builder, please just follow standard Syntax
description to use.
For Visual Basic, we have offer “IMCamera.bas” mo
and user also can define or modify function module fi
For C#.NET, we have defined a class “Mavis” in our sample program and we are
strong to recommend that user can build own class as you need.
For example:
public class Mavis
{
[DllImport("IMCAMERA.DLL")]
[DllImport("IMCAMERA.DLL")]
public static extern short IMC_Camera_Init( int
[DllImport("IMCAMERA.DLL")]
public static extern short IMC_FrameRate_Set(
ndle, ulong
FrameRate, bool bMirror );
[DllImport("IMCAMERA.DLL")]
public static extern short IMC_Camera_Close(
…
}
Please refer to Table 6-1 List of Functions for function
follow Microsoft standard definitions.
-100 cameras. Users can use
er Visual C++ 6.0, Visual Basic
se in Visual C++, Visual Basi
ual C++ and B
dule file in our sample program
le as you need.
public static extern short IMC_Camera_Scan(out IMC_DEVICE_DATA
pCamera_List);
camera_idx, ref IntPtr pHandle );
IntPtr Camera_Ha
IntPtr Camera_Handle );
s by category. All the data types
-
50
-