resize
Function Usage
Image resizing API of the ImageProcessor class. For details about the input and output formats, resolution ranges, and alignment modes, see Resize.
For details about how to use this API, see Resizing.
Prototype
1 | resize(inputImage: Image, resize: Size, interpolation: interpolation) |
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
inputImage |
Image class |
Image class before resizing. |
resize |
Size class |
Height and width for resizing |
interpolation |
interpolation enumeration |
Resizing mode. The default value is HUAWEI_HIGH_ORDER_FILTER. |
Response Parameters
Image class after resizing
Exception Throwing Interface
If the resizing fails, a runtime exception is thrown.
Parent topic: ImageProcessor