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.
1 | resize(inputImage: Image, resize: Size, interpolation: interpolation) |
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. |
Image class after resizing
If the resizing fails, a runtime exception is thrown.