未验证 提交 cc22a82a 编写于 作者: Z zhongqihong 提交者: Gitee

update zh-cn/application-dev/media/image-tool.md.

Signed-off-by: Nzhongqihong <zhongqihong2@huawei.com>
上级 406b6ba1
...@@ -27,7 +27,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe ...@@ -27,7 +27,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe
```ts ```ts
// 读取EXIF信息,BitsPerSample为每个像素比特数 // 读取EXIF信息,BitsPerSample为每个像素比特数
imageSource.getImageProperty('BitsPerSample', (error, data : GetImagePropertyOptions) => { imageSource.getImageProperty('BitsPerSample', (error, data) => {
if (error) { if (error) {
console.error('Failed to get the value of the specified attribute key of the image.And the error is: ' + error); console.error('Failed to get the value of the specified attribute key of the image.And the error is: ' + error);
} else { } else {
...@@ -37,7 +37,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe ...@@ -37,7 +37,7 @@ EXIF信息的读取与编辑相关API的详细介绍请参见[API参考](../refe
// 编辑EXIF信息 // 编辑EXIF信息
imageSource.modifyImageProperty('ImageWidth', '120').then(() => { imageSource.modifyImageProperty('ImageWidth', '120').then(() => {
const width : Promise<string> = imageSource.getImageProperty("ImageWidth"); const width : string = imageSource.getImageProperty("ImageWidth");
console.info('The new imageWidth is ' + width); console.info('The new imageWidth is ' + width);
}) })
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册