Camera view Home

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

For supporting the camera view, LiteCAD uses IC Imaging Control C Library from The Imaging Source Europe GmbH
You have to download the following files and copy them into LiteCAD.dll directory:

Download 32-bit DLL's:   tisgrabber.dll,  TIS_DShowLib10.dll,  TIS_UDSHL10.dll

Download 64-bit DLL's:   tisgrabber.dll_x64,  TIS_DShowLib10_x64.dll,  TIS_UDSHL10_x64.dll


See also

  Code sample,  Retrieve objects