objActiveDcam.Pan [= Value] [C/C++]
HRESULT get_Pan( long *pPan );
HRESULT put_Pan( long Pan );
Data Type [VB]
Pointer to the current pan value
The pan value to be set
The pan control is not available for the selected camera
The value is out of range
The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's pan.
Private SubForm_Load() ActiveDcam1.Acquire=True HScroll1.Value = ActiveDcam1.Pan
HScroll1.Min = ActiveDcam1.GetPanMin
HScroll1.Max = ActiveDcam1.GetPanMax
Private SubHScroll1_Scroll() ActiveDcam1.Pan = HScroll1.Value End Sub
This property provides adjustment of the camera's pan feature. Depending on the camera model, it can control the mechanical pan by physically moving the camera in the horizontal plane or the electronic pan by choosing the horizontal position of the effective image area on a CCD sensor.
The valid property range is reported by the GetPanMin and GetPanMax methods. Note that the property is available only if the currently selected camera supports software pan control.