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

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

public CogRectangle Dilate(
	CogRectangle other,
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogRectangle

The dilated 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 dilating this rectangle with another rectangle. The dilated rectangle is the area occupied by other as its origin traces the perimeter of this rectangle.

    See Also