imaqSetWindowGrid
Usage
int imaqSetWindowGrid(int windowNumber, int xResolution, int yResolution);
Purpose
Sets the grid resolution of the image window. Grid resolution is the number of pixels between grid lines. NI Vision uses the grid resolution when drawing regions of interest on the window using tools in the tool window. You can use the grid to trace a region of interest accurately.
Parameters
Name
|
Type
|
Description
|
---|---|---|
windowNumber | int | The window number of the image window. |
xResolution | int | The x resolution of the grid. |
yResolution | int | The y resolution of the grid. |
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(). |