imaqMakeRect

NI Vision for LabWindows/CVI Function

imaqMakeRect

Usage

Rect imaqMakeRect(int top, int left, int height, int width);

Purpose

Returns a Rect structure with the values you specify. The Rect structure defines the location and size of a rectangle. You can embed a call to imaqMakeRect() in calls to other NI Vision functions that require Rect structures as input parameters, thereby eliminating the need to declare a Rect variable. If you are using LabWindows/CVI, note that this function duplicates the functionality of the LabWindows/CVI function MakeRect().

Parameters

Name

Type

Description

top int Location of the top edge of the rectangle.
left int Location of the left edge of the rectangle.
height int Height of the rectangle.
width int Width of the rectangle.

Return Value

Type

Description

Rect This function returns a Rect structure containing the coordinate values you specify.