IGraphicMultiPen InterfaceCognex VisionPro 9.23

IGraphicMultiPen defines an object that can hold pens used to draw graphics that may have many multi-colored sub-parts.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public interface IGraphicMultiPen : IObject

The IGraphicMultiPen 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 simplePenKey.

Top
Properties

  NameDescription
Public propertyPenCount

Returns the number of custom pens that have been defined.

Top
See Also