imaqSetWindowNonTearing
Usage
int imaqSetWindowNonTearing(int windowNumber, int nonTearing);
Purpose
Enables or disables the non-tearing state of the display window. Tearing images can occur when the image display rate is not in sync with the refresh rate of the monitor. The difference between the display rate and the monitor refresh rate can cause parts of two different images to be displayed at the same time, which causes a split in the image. By enabling non-tearing, the image display is synced to the refresh of the monitor and tearing is eliminated.
Parameters
Name
|
Type
|
Description
|
---|---|---|
windowNumber | int | The window number of the image window. |
nonTearing | int | Set this parameter to TRUE if the given window should be non-tearing and FALSE if the window should operate normally. |
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(). |