imaqGetWindowCenterPos

NI Vision for LabWindows/CVI Function

imaqGetWindowCenterPos

Usage

int imaqGetWindowCenterPos(int windowNumber, Point* centerPosition);

Purpose

This function gets the current position of the image in the center of the given window. This function is useful for determining what pixel location the user clicked when you detect a zoom event.

Parameters

Name

Type

Description

windowNumber int The number of the window.
centerPosition Point* On return, contains the current position of the image in the center of the given image window. This parameter is required and cannot be NULL.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().