DocumentImage.crop Method¶
Module: DocumentImage
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) -> DocumentImage
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
DocumentImage crop(int left, int top, int width, int height)
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public DocumentImage Crop(int left, int top, int width, int height)
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public DocumentImage crop(int left, int top, int width, int height) throws DocumentException
Parameters
leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
public func crop(left: Int32, top: Int32, width: Int32, height: Int32) throws -> DocumentImage
Parameters
leftInt32in Left bound of the crop to extract.topInt32in Top bound of the crop to extract.widthInt32in Width of the crop to extract.heightInt32in Height of the crop to extract.
Returns
The extracted region of interest.
Exceptions
An error has occurred during Document Library execution.
int id3DocumentImage_Crop (
ID3_DOCUMENT_IMAGE hDocumentImage,
int left,
int top,
int width,
int height,
ID3_DOCUMENT_IMAGE hDocumentImageCrop)
Parameters
hDocumentImageID3_DOCUMENT_IMAGEin Handle to the DocumentImage object.leftintin Left bound of the crop to extract.topintin Top bound of the crop to extract.widthintin Width of the crop to extract.heightintin Height of the crop to extract.hDocumentImageCropID3_DOCUMENT_IMAGEout The extracted region of interest.
Returns