Interface for changing resolution of an image. More...
Enumerations | |
enum | IMAGERECT_CMD { IMAGERECT_CMD_GET = 0 , IMAGERECT_CMD_SET_AUTODELETE = 1 , IMAGERECT_CMD_VALIDATE = 2 , IMAGERECT_CMD_SET = 3 , IMAGERECT_CMD_RESET = 4 , IMAGERECT_CMD_CHECK = 5 } |
Defines options for the IRImageSize and IRImageOffset functions. More... | |
Functions | |
cvbbool_t | CanImageRect (IMG Image) |
This function verifies whether the image supports the ImageRect interface. More... | |
cvbres_t | IRImageOffset (IMG Image, IMAGERECT_CMD lAction, cvbdim_t &lXOffset, cvbdim_t &lYOffset) |
Sets/ Gets/ Inquires the offsets of the current image. More... | |
cvbres_t | IRImageSize (IMG Image, IMAGERECT_CMD lAction, cvbdim_t &lDx, cvbdim_t &lDy, IMG &imgNew) |
Sets/ Gets/ Inquires the size of the current image. When IMAGERECT_CMD_GET or IMAGERECT_CMD_VALIDATE is used the imgNew will not be assigned with a new image. IT will be assigned with null. A new image will be returned with imgNew if the set or reset functionality is used and the return value is 0 (OK). The old image still exists but all driver interfaces 'move' to the new image. The old image (Image) and the new Image (imgNew) have to be released with ReleaseObject when they are not needed anymore. With IMAGERECT_CMD_SET_AUTODELETE only the newImg has to be released. More... | |
Interface for changing resolution of an image.
enum IMAGERECT_CMD |
Defines options for the IRImageSize and IRImageOffset functions.
cvbbool_t CanImageRect | ( | IMG | Image | ) |
This function verifies whether the image supports the ImageRect interface.
[in] | Image | Handle of image object. |
TRUE
if the image supports the ImageRect interface, FALSE
otherwise. cvbres_t IRImageOffset | ( | IMG | Image, |
IMAGERECT_CMD | lAction, | ||
cvbdim_t & | lXOffset, | ||
cvbdim_t & | lYOffset | ||
) |
Sets/ Gets/ Inquires the offsets of the current image.
[in] | Image | Handle of image object. |
[in] | lAction | Command to execute. Valid parameters are: IMAGERECT_CMD_GET IMAGERECT_CMD_VALIDATE IMAGERECT_CMD_SET IMAGERECT_CMD_RESET (description of parameters see IMAGERECT_CMD) |
[out] | lXOffset | Offset in x-direction. |
[out] | lYOffset | Offset in y-direction. |
cvbres_t IRImageSize | ( | IMG | Image, |
IMAGERECT_CMD | lAction, | ||
cvbdim_t & | lDx, | ||
cvbdim_t & | lDy, | ||
IMG & | imgNew | ||
) |
Sets/ Gets/ Inquires the size of the current image.
When IMAGERECT_CMD_GET or IMAGERECT_CMD_VALIDATE is used the imgNew will not be assigned with a new image. IT will be assigned with null.
A new image will be returned with imgNew if the set or reset functionality is used and the return value is 0 (OK).
The old image still exists but all driver interfaces 'move' to the new image.
The old image (Image) and the new Image (imgNew) have to be released with ReleaseObject
when they are not needed anymore. With IMAGERECT_CMD_SET_AUTODELETE only the newImg has to be released.
[in] | Image | Handle of image object. |
[in] | lAction | Command to execute. Valid parameters are: IMAGERECT_CMD_GET IMAGERECT_CMD_VALIDATE IMAGERECT_CMD_SET_AUTODELETE (recommended as default) IMAGERECT_CMD_SET IMAGERECT_CMD_RESET (description of parameters see IMAGERECT_CMD) |
[out] | lDx | Image width. |
[out] | lDy | Image Height. |
[out] | imgNew | New image. |