IRegion MethodsCognex VisionPro 9.23

The IRegion type exposes the following members.

Methods

  NameDescription
Public methodDistanceToPoint

Shortest distance from a boundary of this shape to the given point. Points within closed shapes return a distance less than zero.

(Inherited from IShape.)
Public methodEnclosingRectangle

Minimum enclosing rectangle of this shape.

(Inherited from IShape.)
Public methodFitToBoundingBox

Adjust the shape's geometric properties so that the shape fits inside passed in rectangle.

(Inherited from IShape.)
Public methodFitToImage

Adjust the shape's geometric properties such that its default size is based on the image and its SelectedSpaceName. XScale and YScale are multipliers where 1.0 designates 100% scaling.

(Inherited from IShape.)
Public methodMap

Maps this shape through the given transform.

(Inherited from IShape.)
Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.

(Inherited from IChangedEvent.)
Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Inherited from IChangedEvent.)
Top
See Also