ICogAcqContrastMultiChannel GetContrastMultiChannel Method Cognex VisionPro 9.8 SR1
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: 75.0.0.0
Syntax

double GetContrastMultiChannel(
	int index
)

Return Value

Type: Double
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