Admin Production ni-theme
Current Publication

RectCenter

LabWindows/CVI

RectCenter

void RectCenter (Rect rectangle, Point *center);

Purpose

Calculates the location of the center point of a rectangle. For even heights (or widths), the center point is rounded toward the top (or left).

Parameters

Input
Name Type Description
rectangle Rect The location and size of a rectangle.
Output
Name Type Description
center Point A Point structure that specifies the location of the center of the rectangle.

Return Value

None.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later