Controls transparency of mask values when displayed. The transparency value may be any integer between 0 (fully opaque) and 100 (fully transparent) inclusive.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 93.1.0.0
Syntax
Parameters
- maskVal
- Type: System Byte
The mask pixel value.
Return Value
Type: CogMaskGraphicTransparencyConstantsEvents
| Event Type | Reason |
|---|---|
| CogMaskGraphic Changed | Fires when the transparency value changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Value is not in the range 0 to 100. |
Remarks
Returns the transparency constant that corresponds to the specified maskVal pixel value.
See Also