CogRectangle Erode Method Cognex VisionPro 9.8
Creates a new rectangle which is the erosion of this by Other.

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

public CogRectangle Erode(
	CogRectangle other,
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogRectangle

The eroded rectangle.

Events

Event TypeReason
CogRectangle Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    other is NULL.

    Remarks

    Creates a new rectangle that is the result of eroding this rectangle with another rectangle. The eroded rectangle is the result of tracing other's origin point as it occupies every possible point within this rectangle.

    See Also