From 3e0265664bf1a3ab598977ba9feaee8508d4ef8e Mon Sep 17 00:00:00 2001 From: xu-rui-w Date: Tue, 27 Sep 2022 17:48:06 +0800 Subject: [PATCH] modify doc Signed-off-by: xu-rui-w --- zh-cn/application-dev/reference/apis/js-apis-image.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index a38d5ddbe2..8d1e44bda9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -169,12 +169,7 @@ readPixels(area: PositionArea): Promise\ **示例:** ```js -const area = { - pixels: new ArrayBuffer(8), - offset: 0, - stride: 8, - region: { size: { height: 1, width: 2 }, x: 0, y: 0 } -} +const area = new ArrayBuffer(400); pixelmap.readPixels(area).then(() => { console.log('Succeeded in reading the image data in the area.'); //符合条件则进入 }).catch(error => { @@ -2483,7 +2478,7 @@ PixelMap的初始化选项。 枚举,Exif(Exchangeable image file format)图片信息。 -**系统能力:** SystemCapability.Multimedia.Image.Core +**系统能力:** 以下各项对应的系统能力均为SystemCapability.Multimedia.Image.Core | 名称 | 默认值 | 说明 | | ----------------- | ----------------------- | ------------------------ | -- GitLab