Gamma
Top  Previous  Next

Description

Returns or sets the gamma correction factor for the image.


Syntax


[VB]
objActiveUSB.Gamma [= Value]


[C/C++]
HRESULT get_Gamma( float *pValue );
HRESULT put_Gamma( float Value );



Data Type
[VB]

Single

Parameters
[C/C++]

pValue [out,retval]  
Pointer to the current gamma factor  
Value [in]  
The gamma factor to be set  


Return Values


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

Example


The following VB example sets the Gamma factor to 1.2

ActiveUSB1.Gamma = 1.2
 

Remarks


This property changes the gamma correction factor of the camera's circuitry. The gamma correction modifies an image by applying standard, nonlinear gamma curves to the intensity scale. Increasing the gamma value will lighten the video and increase the contrast in its darker areas. The valid range of the gamma values can be obtained by the GetFeatureMin and GetFeatureMax methods.

Note that the property is available only if the currently selected camera supports the Gamma feature.