crop_paste
Function Usage
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.
- Crop an image from inputImage and resize the image to the size of the pasting ROI.
- Paste the cropped image to the pasting ROI specified by pastedImage. For details about the input and output formats, resolution ranges, and alignment modes, see CropAndPaste.
Prototype
1 | crop_paste(inputImage: Image, cropPasteRect: Tuple, pastedImage: Image) |
Input Parameters
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 |
Exception Throwing Interface
If image cropping and pasting fails, a runtime exception is thrown.
Parent topic: ImageProcessor