ColorCorrect
Top  Previous  Next

Description

Enables/disables the color correction mode. Used in combination with SetColorMatrix.


Syntax


[VB]
objActiveUSB.ColorCorrect [= Value]


[C/C++]
HRESULT get_ColorCorrect ( bool *pCorrect);
HRESULT put_ColorCorrect( bool Correct );


Data Type
[VB]

Boolean


Parameters
[C/C++]

pCorrect [out,retval]  
Pointer to the Boolean that is TRUE if the color correction is enabled, or FALSE otherwise  
Correct [in]  
Set to TRUE to enable the color correction, or set to FALSE to disable it  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example defines the color correction matrix and turns on the color correction:

ActiveUSB1.SetColorMatrix 0.85, 0.1, 0.05, 0.05, 0.98, -0.03, 0.13, -0.15, 1.02
ActiveUSB1.ColorCorrect=
True

 

Remarks

Color correction is used to eliminate the overlap in the color channels caused by the fact that the light intended to be detected only by pixels of a certain color is partially seen by pixels of other colors. For more information see SetColorMatrix
.