From b138bd30515bfa85176f179057c764f0f17bb9b3 Mon Sep 17 00:00:00 2001 From: lanyill Date: Thu, 1 Dec 2022 09:35:03 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20070b477=20from=20https://gitee.com/lany?= =?UTF-8?q?ill/docs/pulls/12024=20canvas=E6=96=87=E6=A1=A3=E6=95=B4?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E5=AF=B9imagedata=E5=8D=95=E4=BD=8D=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=AF=B4=E6=98=8E,=E6=8C=91=E5=8D=95monthly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanyill --- .../reference/arkui-ts/ts-components-canvas-imagedata.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-imagedata.md b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-imagedata.md index 00ca2d47e1..d717fbf45a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-imagedata.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-imagedata.md @@ -12,10 +12,14 @@ ImageData对象可以存储canvas渲染的像素数据。 | 属性 | 类型 | 描述 | | -------- | -------- | -------- | -| width | number | 矩形区域实际像素宽度。 | -| height | number | 矩形区域实际像素高度。 | +| width | number | 矩形区域实际像素宽度,单位为px。 | +| height | number | 矩形区域实际像素高度,单位为px。 | | data | Uint8ClampedArray | 一维数组,保存了相应的颜色数据,数据值范围为0到255。 | +> **说明:** +> +> 可使用[px2vp](ts-pixel-units.md)接口进行单位转换。 + **示例:** ```ts -- GitLab