Returns/sets the key that refers to the custom pen properties used for drawing this segment. A key of 0 (the default) causes the segment to use the pen properties of the contour.
Namespace: Cognex.VisionPro.Implementation.InternalAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 93.1.0.0
Syntax
Property Value
Type: Int32Implements
ICogGeneralContourLineSegmentIterator CustomPenEvents
| Event Type | Reason |
|---|---|
| CogGeneralContourSegmentChanged | Fires when the pen changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The value is not an existing pen key that refers to a pen in the contour's OwnedCustomPens. |
Remarks
Sets or gets the key that refers to the custom pen properties used for drawing this segment. Zero means that the segment uses the pen properties of the contour.
Default Value: 0 (Use the properties of the contour.)
See Also