ICogGraphicMultiPen InterfaceCognex VisionPro
A CogGraphicMultiPen is an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public interface ICogGraphicMultiPen

The ICogGraphicMultiPen type exposes the following members.

Methods

  NameDescription
Public methodAddInteractivePen
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'.
Public methodAddSimplePen
Creates a simple pen with the specified attributes and returns the key.
Public methodGetInteractivePenAttributes
Returns the attributes of the interactive pen with the given Key.
Public methodGetPenKey
Returns the key for the pen at the given Index. Index must be in the range from 0 to PenCount-1 (inclusive).
Public methodGetPenType
Returns the type (simple or interactive) of the pen with the given Key.
Public methodGetSimplePenAttributes
Returns the attributes of the simple pen with the given Key.
Public methodRemovePen
Removes the custom pen with the specified Key. The Key must be an existing simple or interactive pen key that is not in use.
Public methodSetInteractivePenAttributes
Sets the attributes of the interactive pen with the given Key.
Public methodSetSimplePenAttributes
Sets the attributes of the simple pen with the given Key.
Top
Properties

  NameDescription
Public propertyPenCount
Returns the number of custom pens that have been defined.
Top
Remarks

A CogGraphicMultiPen is an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.

See Also