Access the brightness level of a particular channel.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- index
- Type: System Int32
The index of the image channel.
Return Value
Type: DoubleEvents
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the brightness 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 brightness level of a particular channel.
You can use CogAcqBrightness.Brightness to set the brightness of all channels to the same value.
Default Value: 0.5
See Also