From 97280e14c40c061d72a52031d697cd08c75b9a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=85=B3=E9=B9=8F?= Date: Tue, 5 Sep 2023 03:05:40 +0000 Subject: [PATCH] update zh-cn/application-dev/media/image-encoding.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘关鹏 --- zh-cn/application-dev/media/image-encoding.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zh-cn/application-dev/media/image-encoding.md b/zh-cn/application-dev/media/image-encoding.md index 7f05b962ee..a46249957f 100644 --- a/zh-cn/application-dev/media/image-encoding.md +++ b/zh-cn/application-dev/media/image-encoding.md @@ -30,6 +30,7 @@ 方法一:通过PixelMap进行编码。 ```ts + import {BusinessError} from '@ohos.base' imagePackerApi.packing(pixelMap, packOpts).then( (data : ArrayBuffer) => { // data 为打包获取到的文件流,写入文件保存即可得到一张图片 }).catch((error : BusinessError) => { @@ -40,6 +41,7 @@ 方法二:通过imageSource进行编码。 ```ts + import {BusinessError} from '@ohos.base' imagePackerApi.packing(imageSource, packOpts).then( (data : ArrayBuffer) => { // data 为打包获取到的文件流,写入文件保存即可得到一张图片 }).catch((error : BusinessError) => { -- GitLab