objActiveDcam.Zoom [= Value] [C/C++]
HRESULT get_Zoom( long *pZoom );
HRESULT put_Zoom( long Zoom );
Data Type [VB]
Pointer to the current zoom value
The zoom value to be set
The zoom 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 zoom.
Private SubForm_Load() ActiveDcam1.Acquire=True HScroll1.Value = ActiveDcam1.Zoom
HScroll1.Min = ActiveDcam1.GetZoomMin
HScroll1.Max = ActiveDcam1.GetZoomMax
Private SubHScroll1_Scroll() ActiveDcam1.Zoom = HScroll1.Value End Sub
This property provides adjustment of the optical zoom of the camera lens. The valid property range is reported by the GetZoomMin and GetZoomMax methods. Note that the property is available only if the currently selected camera is equipped with a motorized lens supports software zoom control.