IMC_Camera_Init
Syntax:
Visual C++ 6.0 / Boland C++ Builder 6.0:
IMC_Camera_Init ( int camera_idx, HANDLE* pHandle);
As Integer
n initializes the MAVIS cameras and returns a handle for the other
is required to enable and start one MAVIS camera. The
based on the IMC_DEVICE_DATA structure returned by
ded by other
functions.
ALID_IDX The index is not in valid range (1 to scanned
cameras).
ERROR_DEVICE_OCUPPIED The camera is used by other application.
ERROR_NO_CAMERA No MAVIS camera response to the initialization
command.
ERROR_DEVICE_INIT Fail to initialize the camera
ERROR_VIDEOFORMAT_SET Fail to set the DEFAULT_VIDEO_FORMAT
ERROR_VIDEOMODE_SET Fail to set the DEFAULT_VIDEO_MODE
ERROR_FRAMERATE_SET Fail to set the DEFAULT_VIDEO_FRAME_RATE
ERROR_CAMERA_CREATE Fail to create the camera structure.
short
Visual Basic 6.0
IMC_Camera_Init (ByVal camera_idx As Long, ByRef pHandle As Long)
C#.NET 2003
Mavis.IMC_Camera_Init( int camera_idx, ref IntPtr pHandle );
Description:
This functio
functions. The function
initialized state will be maintained until calling IMC_Camera_Close().
:
Parameters
camera_idx The index
IMC_Camera_Scan()
: The pointer to the MAVIS camera. This handle will be nee
pHandl
Return:
Successfully
ERROR_SUCCESSFUL
ERROR_INV
- 57 -