Initialize from CenterX,CenterY,Width,Height.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
Parameters
- centerX
- Type: System Double
The x-coordinate of the center of the rectangle
- centerY
- Type: System Double
The y-coordinate of the center of the rectangle
- width
- Type: System Double
The width of the rectangle.
- height
- Type: System Double
The height of the rectangle.
Events
| Event Type | Reason |
|---|---|
| CogRectangle Changed | Fires when the value of this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | width is <= 0 or height is <= 0. |
Remarks
Sets the x- and y-coordinates of the center and the width and height of this rectangle.
See Also