下载
中文
注册

resize(inputImage, resize, interpolation)

函数功能

图像缩放。输入输出范围及对齐方式请参见resize(inputImage, resize, interpolation)

输入参数说明

参数名

类型

说明

inputImage

Image类

输入缩放前的Image类。

resize

Size类

输入图像缩放的宽高。

interpolation

Interpolation参数枚举类

输入图像的缩放方式,默认为“HUAWEI_HIGH_ORDER_FILTER”

返回参数说明

Image对象。

抛异常接口

创建ImageProcessor失败、图片缩放失败,抛出runtime异常。