Access the contrast level of a particular channel. Contrast values are in the range 0-1 inclusive.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the contrast is changed. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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