GetFeatureMax
Top  Previous  Next

Description

Returns the maximum numerical value allowed for the specified camera feature.


Syntax


[VB]
Value=objActiveUSB.GetFeatureMin ( Name ) 


[C/C++]
HRESULT GetFeatureMin( bstr Name, float* pValue );


Data Types
[VB]

Name: String
Return value
: Single


Parameters
[C/C++]

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


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_FAIL  
Failure to read the value  
 

Example


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

Private Sub
 Form_Load()

Slider1.Min = ActiveUSB1.GetFeatureMin("GainRaw")
Slider1.Max = ActiveUSB1.GetFeatureMax("GainRaw")
Slider1.Value = ActiveUSB1.GetFeature("GainRaw")
End Sub

 

Remarks


Depending on the Type of the feature GetFeatureMax will return the following values:

Feature Type
Return value
Integer
Maximum allowed value converted to floating point
Float
Maximum allowed value
Boolean
1.
Enumerated
Maximum ordinal number in the enumeration list
String
Zero value
Command
1.


If the currently selected camera does not support the specified feature, the method will generate an error.