CogAcqROI SetROIXYWidthHeight Method Cognex VisionPro 9.21 SR1
Sets the ROI.

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

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

Parameters

x
Type: System Int32

The x-coordinate of the start of the ROI.

y
Type: System Int32

The y-coordinate of the start of the ROI.

width
Type: System Int32

The width of the ROI

height
Type: System Int32

The height of the ROI.

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