Camera view Home

Note: In order to work with camera functions, your application must preliminary attach IC Imaging Control DLL using lcTIS_InitLibrary function.

To add a camera view into a drawing use following function:

Function Meaning
lcBlockAddCamview Add camera view

A camera view entity has the following properties:

Property Type Access Meaning
LC_PROP_ENT_...    Base class properties
LC_PROP_CAMERA_X float RW Left of camera view rect
LC_PROP_CAMERA_Y float RW Bottom of camera view rect
LC_PROP_CAMERA_W float RW Width of camera view rect
LC_PROP_CAMERA_H float RW Height of camera view rect

Camera functions:

Function Meaning
lcCameraConnect Connect camera
lcCameraDisconnect Disconnect camera
lcCameraShot Grab camera image

A camera global properties:

Property Type Access Meaning
LC_PROP_G_CAMERA_COUNT int R Number of camera devices
LC_PROP_G_CAMERA_I int RW Set camera index
LC_PROP_G_CAMERA_NAME string R Name of camera by index (LC_PROP_G_CAMERA_I)
LC_PROP_G_CAMERA_ON bool R TRUE if camera is connected
LC_PROP_G_CAMERA_TIME int RW Interval between camera shots (msec.)
LC_PROP_G_CAMERA_WIDTH int R Width of camera image (pixels)
LC_PROP_G_CAMERA_HEIGHT int R Height of camera image (pixels)
LC_PROP_G_CAMERA_BITS handle R Pointer to image bits
LC_PROP_G_CAMERA_BPROW int R Bytes per row

See also

  Code sample,    lcTIS_InitLibrary,   lcTIS_CloseLibrary