未验证 提交 e0f7c94a 编写于 作者: 朱静茹 提交者: Gitee

update zh-cn/application-dev/media/image-pixelmap-operation.md.

Signed-off-by: N朱静茹 <zhujingru2@huawei.com>
上级 e3d5829b
......@@ -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.');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册