GetFeatureIncrement
Top  Previous  Next

Description

Returns the increment value for the specified integer feature.


Syntax


[VB]
Value=objActiveUSB.GetFeatureIncrement ( Name ) 


[C/C++]
HRESULT GetFeatureIncrement( bstr Name, long* pValue );


Data Types
[VB]

Name: String
Return value
: Long


Parameters
[C/C++]

Name [in]  
String specifying the name of the feature  
pValue [out, retval]  
Pointer to the increment value of the feature  


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_INVALIDARG  
Feature is not of integer type  
E_FAIL  
The gain control is not available for the selected camera  
 

Example


This VB example uses the increment value of the horizontal image size to initialize the scroll control:

Private Sub
 Form_Load()

HScroll1.Min = ActiveUSB1.GetFeatureMin ("Width")
HScroll1.Max = ActiveUSB1.GetFeatureMax ("Width")
HScroll1.SmallChange = ActiveUSB1.GetFeatureIncrement ("Width")
HScroll1.Value = ActiveUSB1.GetFeature ("Width")
End Sub

 

Remarks


The increment of the feature defines the minimum value at which the feature can increase or decrease. Available only for integer features.