A CogGraphicMultiPen is an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
The ICogGraphicMultiPen type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AddInteractivePen | Creates an interactive pen based on the specified simple pens and returns the key. The specified simple pen keys must already exist, and zero is a valid key meaning 'use the pen properties of the graphic for the given state'. | |
| AddSimplePen | Creates a simple pen with the specified attributes and returns the key. | |
| GetInteractivePenAttributes | Returns the attributes of the interactive pen with the given Key. | |
| GetPenKey | Returns the key for the pen at the given Index. Index must be in the range from 0 to PenCount-1 (inclusive). | |
| GetPenType | Returns the type (simple or interactive) of the pen with the given Key. | |
| GetSimplePenAttributes | Returns the attributes of the simple pen with the given Key. | |
| RemovePen | Removes the custom pen with the specified Key. The Key must be an existing simple or interactive pen key that is not in use. | |
| SetInteractivePenAttributes | Sets the attributes of the interactive pen with the given Key. | |
| SetSimplePenAttributes | Sets the attributes of the simple pen with the given Key. |
Properties
| Name | Description | |
|---|---|---|
| PenCount | Returns the number of custom pens that have been defined. |
Remarks
A CogGraphicMultiPen is an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.
See Also