From 786c3508c0306d5d0fc271c784b6aa200636f4ff 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:40:28 +0000 Subject: [PATCH] update zh-cn/application-dev/media/image-tool.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-tool.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/media/image-tool.md b/zh-cn/application-dev/media/image-tool.md index 4407bef007..cfd8a7a557 100644 --- a/zh-cn/application-dev/media/image-tool.md +++ b/zh-cn/application-dev/media/image-tool.md @@ -20,7 +20,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe // 获取沙箱路径创建ImageSource const fd : number = ...; // 获取需要被处理的图片的fd - const imageSource : ImageSource = image.createImageSource(fd); + const imageSource : image.ImageSource = image.createImageSource(fd); ``` 2. 读取、编辑EXIF信息。 @@ -37,7 +37,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe // 编辑EXIF信息 imageSource.modifyImageProperty('ImageWidth', '120').then(() => { - const width : string = imageSource.getImageProperty("ImageWidth"); + const width : Promise = imageSource.getImageProperty("ImageWidth"); console.info('The new imageWidth is ' + width); }) ``` -- GitLab