ICogAcqContrastMultiChannel SetContrastMultiChannel Method Cognex VisionPro 9.20
Access the contrast level of a particular channel. Contrast values are in the range 0-1 inclusive.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 80.0.0.0
Syntax

void SetContrastMultiChannel(
	int index,
	double value
)
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the contrast is changed.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

value is < 0 or value > 1.0.

ArgumentException

index is < 0 or index >= (number of camera channels).

Remarks

Sets or gets the contrast level of a particular channel..

You can use CogAcqContrast.Contrast to set the contrast of all channels to the same value.

Default Value: 0.5

See Also