IGraphicMultiPen defines an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
The IGraphicMultiPen type exposes the following members.
| 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 simplePenKey. |
| Name | Description | |
|---|---|---|
| PenCount | Returns the number of custom pens that have been defined. |