imaqMakeRectFromRotatedRect
Usage
Rect imaqMakeRectFromRotatedRect(RotatedRect rotatedRect);
Purpose
Returns a Rect structure that represents the bounding rectangle of the rotated rectangle with the values you specify. Note that if you supply a rotated rectangle with an angle other than 0, 90, 180, or 270 degrees, the function returns a bounding rectangle larger then the rotated rectangle. You can embed a call to imaqMakeRectFromRotatedRect() in calls to other NI Vision functions that require Rect structures as input parameters, thereby eliminating the need to declare a Rect variable.
Parameters
Name
|
Type
|
Description
|
---|---|---|
rotatedRect | RotatedRect | The rotated rectangle for which the function returns the bounding rectangle. |
Return Value
Type |
Description |
---|---|
Rect | This function returns a Rect structure representing the bounding box of the rotated rectangle you specify. |