From 2909b0bc1b0172aed9fc6c58d8dbaddef3b29806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=85=B3=E9=B9=8F?= Date: Thu, 31 Aug 2023 07:39:09 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/media/image-encoding.md b/zh-cn/application-dev/media/image-encoding.md index 60c79e4ba9..8a5ab62e15 100644 --- a/zh-cn/application-dev/media/image-encoding.md +++ b/zh-cn/application-dev/media/image-encoding.md @@ -30,7 +30,7 @@ 方法一:通过PixelMap进行编码。 ```ts - imagePackerApi.packing(pixelMap : PixelMap, packOpts : image.PackingOption).then( data => { + imagePackerApi.packing(pixelMap, packOpts).then( data => { // data 为打包获取到的文件流,写入文件保存即可得到一张图片 }).catch(error => { console.error('Failed to pack the image. And the error is: ' + error); @@ -40,7 +40,7 @@ 方法二:通过imageSource进行编码。 ```ts - imagePackerApi.packing(imageSource : ImageSource, packOpts : image.PackingOption).then( data => { + imagePackerApi.packing(imageSource, packOpts).then( data => { // data 为打包获取到的文件流,写入文件保存即可得到一张图片 }).catch(error => { console.error('Failed to pack the image. And the error is: ' + error); -- GitLab