| Home > Obsolete functions > | History back Previous chapter Next chapter Print |
SetImageAOI |
|
uEye ActiveX Manual Version 4.00
Syntax
LONG SetImageAOI(LONG lPosX, LONG lPosY, LONG lWidth, LONG lHeight)
Description
|
|
SetImageAOI() sets the area of interest of an uEye sensor. It’s a combination of SetImagePosition() and SetImageSize().
For position and size constraints please refer to the "Specifications: Sensors" chapter in the uEye Manual.
|
|
Parameters
lPosX |
Horizontal starting point of the area of interest. |
lPosY |
Vertical starting point of the area of interest. |
lWidth |
Width of image / area of interest |
lHeight |
Height of image / area of interest. |
Return values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |
Example:
//Set the image position to X=32 and Y=80;
// set the image size to width=304 and height=200 :
//Using SetImagePos and SetImageSize:
ret = SetImagePos (32, 80);
ret = SetImageSize(304, 200);
Using SetImageAOI:
ret = SetImageAOI(32, 80, 304, 200);
Related functions