imaqMakeRotatedRect
Usage
RotatedRect imaqMakeRotatedRect(int top, int left, int height, int width, double angle);
Purpose
Returns a RotatedRect structure with the values you specify. The RotatedRect structure defines the location, size, and rotation of a rectangle. You can embed a call to imaqMakeRotatedRect() in calls to other NI Vision functions that require RotatedRect structures as input parameters, thereby eliminating the need to declare a RotatedRect variable.
Parameters
Name
|
Type
|
Description
|
---|---|---|
top | int | Location of the top edge of the rectangle before rotation. |
left | int | Location of the left edge of the rectangle before rotation. |
height | int | Height of the rectangle. |
width | int | Width of the rectangle. |
angle | double | The rotation, in degrees, of the rectangle. |
Return Value
Type |
Description |
---|---|
RotatedRect | This function returns a RotatedRect structure containing the coordinate values you specify. |