Pan
Top  Previous  Next

Description

Returns or sets the row value of the pan.


Syntax


[VB]
objActiveDcam.Pan [= Value]


[C/C++]
HRESULT get_Pan( long *pPan );
HRESULT put_Pan( long Pan );



Data Type
[VB]

Long

Parameters
[C/C++]

pPan [out,retval]  
Pointer to the current pan value  
Pan [in]  
The pan value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The pan control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the camera's pan.

Private Sub
 Form_Load()

ActiveDcam1.Acquire=
True

HScroll1.Value = ActiveDcam1.Pan
HScroll1.Min = ActiveDcam1.GetPanMin
HScroll1.Max = ActiveDcam1.GetPanMax
End Sub


Private Sub
 HScroll1_Scroll()

ActiveDcam1.Pan = HScroll1.Value

End Sub

 

Remarks


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.