文档
注册

decode(inputPath, decodeFormat)

函数功能

ImageProcessor类的图片解码接口,输入输出格式、分辨率范围、对齐方式请参见Decode

输入参数说明

参数名

类型

说明

inputPath

str

输入待解码的图片路径。

decodeFormat

image_format枚举类

输入解码后图片的格式。(PNG格式解码无需设置。)

返回参数说明

返回解码后的Image类。

抛异常接口

图片路径错误、解码格式错误、解码失败,抛出runtime异常。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词