BlackLevelSelector
Top  Previous  Next

Description

Returns or sets the channel to be controlled by black level adjustments. Can be one of the following values:

"All"  
   Black level adjustments will be applied to all channels.  
"Red"  
   Black level adjustments will be applied to the red channel.  
"Green"  
   Black level adjustments will be applied to the green channel.  
"Blue"  
   Black level adjustments will be applied to the blue channel.  
"Y"  
   Black level adjustments will be applied to Y channel.  
"U"  
   Black level adjustments will be applied to U channel.  
"V"  
   Black level adjustments will be applied to V channel.  
     


Syntax


[VB]
objActiveUSB.BlackLevelSelector [= Value]


[C/C++]
HRESULT get_BlackLevelSelector( string *pValue );
HRESULT put_BlackLevelSelector( string Value );



Data Type
[VB]

String

Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string specifying the black level channel setting  
Value [in]  
The black level channel to be set  

Return Values


S_OK  
Success  
E_NOINTERFACE  
The feature is not available for the selected camera  
E_INVALIDARG  
The value is not part of the enumerated set  
E_FAIL  
Failure to set the feature value  
 

Example


The following VB example demonstrates the use of a combo box to switch between different black level channels:

Private Sub
 Form_Load()
Lst = ActiveUSB1.GetEnumList("BlackLevelSelector")
For
 i = 0 
To
 
UBound
(Lst)
Combo1.AddItem (Lst(i))
Next

Combo1.ListIndex = ActiveUSB1.BlackLevelSelector
End Sub

Private Sub
 Combo1_Click()
ActiveUSB1.BlackLevelSelector = Combo1.Text
End Sub
 

Remarks


Depending on a camera model, other device-specific values may be available for this feature. The list of valid values can be retrieved using GetEnumList.

Note that the property is available only if the currently selected camera supports the BlackLevelSelector feature per GenICam standard.