From 6e671dea39ef3df08d11e1ec59badd469abd1be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=9D=99=E8=8C=B9?= Date: Wed, 30 Aug 2023 04:56:04 +0000 Subject: [PATCH] update zh-cn/application-dev/media/image-pixelmap-operation.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-pixelmap-operation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/media/image-pixelmap-operation.md b/zh-cn/application-dev/media/image-pixelmap-operation.md index f327d2c619..a28daf42e5 100644 --- a/zh-cn/application-dev/media/image-pixelmap-operation.md +++ b/zh-cn/application-dev/media/image-pixelmap-operation.md @@ -36,11 +36,11 @@ }) // 场景二:读取指定区域内的图片数据,结果写入area.pixels中 - const area = { + const area : image.PositionArea = { pixels: new ArrayBuffer(8), offset: 0, stride: 8, - region: { size : { height: 1, width: 2 }, x: 0, y: 0 } + region: { size: { height: 1, width: 2 }, x: 0, y: 0 } } pixelMap.readPixels(area).then(() => { console.info('Succeeded in reading the image data in the area.'); -- GitLab