Sets the ROI.
Namespace: Cognex.VisionPro.Implementation.InternalAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
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 Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the ROI is changed. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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