Sets the attributes of the simple pen with the given Key.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- simplePenKey
- Type: System Int32
The pen key.
- color
- Type: Cognex.VisionPro CogColorConstants
The pen color.
- lineWidth
- Type: System Int32
The line width.
- lineStyle
- Type: Cognex.VisionPro CogGraphicLineStyleConstants
The line style.
Events
| Event Type | Reason |
|---|---|
| CogGeneralContour Changed | Fires when the pen is changed. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | simplePenKey is not a known simple pen key. |
Remarks
Sets the attributes of the simple pen with the given simplePenKey.
See Also