resize(inputImage, resize, interpolation)

Function Usage

Image resizing API of the ImageProcessor class. For details about the input and output formats, resolution ranges, and alignment modes, see Resize.

Input Parameter Description

Parameter

Type

Description

inputImage

Image class

Image class before resizing

resize

Size class

Height and width for resizing

interpolation

Interpolation enumerations

Resizing mode. The default value is HUAWEI_HIGH_ORDER_FILTER.

Return Parameter Description

Returns the Image class after resizing.

Exception Throwing Interface

If the resizing fails, a runtime exception occurs.