CogAcqROI SetROIXYWidthHeight Method Cognex VisionPro
Sets the ROI.

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

public virtual void SetROIXYWidthHeight(
	int x,
	int y,
	int width,
	int height
)

Implements

ICogAcqROI SetROIXYWidthHeight(Int32, Int32, Int32, Int32)
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the ROI is changed.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

Any parameter is < 0.

Remarks

Sets the acquisition region of interest (ROI).

Note: If the ROI specified extends in the positive direction beyond the bounds specified by the video format, it will be silently clipped.

See Also