Initialize from X,Y,Width,Height.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax
Parameters
- x
- Type: System Double
The x-coordinate of the top left corner of the rectangle
- y
- Type: System Double
The y-coordinate of the top left corner of the rectangle
- width
- Type: System Double
The width of the rectangle.
- height
- Type: System Double
The height of the rectangle.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | width is <= 0 or height is <= 0. |
Remarks
Changed Raised when the rectangle geometry changes.
Remarks
Returns the x- and y-coordinates and the width and height of this rectangle.
See Also