createCamera
Top  Previous  Next

Description

Creates an instance of the CGevCamera class.

[C++]
external
 CGevCamera* createCamera();


Parameters
[C/C++]
 
none  


Return Values


Pointer to an object of the CGevCamera class if successful. Zero if failed.  

Example


This fragment of code instantiates a camera object and sets up initial values for the image transfer :

static CGevCamera* m_pCamera;  
m_pCamera = createCamera();  
 
m_pCamera->SetImageSize (1024, 768);  
m_pCamera->AddPixelFormat("Mono16");  


Remarks


Use this function to instantiate a virtual camera object. Once the camera object is created, you can use its methods and callbacks for defining and configuring the camera's features, connecting it to the network and initiating an image transfer.

To work with multiple virtual cameras, you will have to create several CGevCam objects. See Working with multiple cameras for more details.