GetZoomMin
Top  Previous  Next

Description

Returns the minimum value of the Zoom property.


Syntax


[VB]
Value=objActiveDcam.GetZoomMin()


[C/C++]
HRESULT GetZoomMin(long* pValue );


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pValue [out, retval]  
Pointer to the minimum zoom value  


Return Values


S_OK  
Success  
E_FAIL  
The zoom control is not available for the selected camera  
 

Example


This VB example uses the minimum and maximum zoom values to initialize the slider control:

Private Sub
 Form_Load()

Slider1.Min = ActiveDcam1.GetZoomMin
Slider1.Max = ActiveDcam1.GetZoomMax
Slider1.Value = ActiveDcam1.Zoom
End Sub

 

Remarks


If the currently selected camera doesn't support software zoom control, the method will generate an error.