Image cropping and pasting API of the ImageProcessor class. The procedure is as follows: For details about how to use this API, see Cropping and Pasting.
1 | crop_paste(inputImage: Image, cropPasteRect: Tuple, pastedImage: Image) |
Parameter |
Type |
Description |
|---|---|---|
inputImage |
Image class |
Image class before cropping |
cropPasteRect |
Tuple(Rect, Rect) |
Cropping parameter of the input image. The first Rect corresponds to the cropping parameter, and the second one corresponds to the pasting parameter. |
pastedImage |
Image class |
Image class after pasting |
If image cropping and pasting fails, a runtime exception is thrown.