CaptureImage.crop Method¶
Module: CaptureImage
Definition¶
Crop a rectangular region of interest in the image according to the given bounds.
crop(self, left: int, top: int, width: int, height: int) -> CaptureImage
Parameters
left
intin Left bound of the crop to extract.top
intin Top bound of the crop to extract.width
intin Width of the crop to extract.height
intin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Devices Library execution.
CaptureImage crop(int left, int top, int width, int height)
Parameters
left
intin Left bound of the crop to extract.top
intin Top bound of the crop to extract.width
intin Width of the crop to extract.height
intin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Devices Library execution.
public CaptureImage Crop(int left, int top, int width, int height)
Parameters
left
intin Left bound of the crop to extract.top
intin Top bound of the crop to extract.width
intin Width of the crop to extract.height
intin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Devices Library execution.
public CaptureImage crop(int left, int top, int width, int height) throws DevicesException
Parameters
left
intin Left bound of the crop to extract.top
intin Top bound of the crop to extract.width
intin Width of the crop to extract.height
intin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_Crop (
ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
int left,
int top,
int width,
int height,
ID3_DEVICES_CAPTURE_IMAGE hCaptureImageCrop)
Parameters
hCaptureImage
ID3_DEVICES_CAPTURE_IMAGEin Handle to the CaptureImage object.left
intin Left bound of the crop to extract.top
intin Top bound of the crop to extract.width
intin Width of the crop to extract.height
intin Height of the crop to extract.hCaptureImageCrop
ID3_DEVICES_CAPTURE_IMAGEout The extracted region of interest.
Returns