ts-components-canvas-imagedata.md 573 字节
Newer Older
Z
zengyawen 已提交
1
# ImageData
Z
zengyawen 已提交
2 3


E
ester.zhou 已提交
4
An **ImageData** object stores pixel data rendered on a canvas.
Z
zengyawen 已提交
5

E
ester.zhou 已提交
6 7 8
>  **NOTE**
>
>  The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
Z
zengyawen 已提交
9

Z
zengyawen 已提交
10 11 12

## Attributes

E
ester.zhou 已提交
13
| Name| Type| Description|
Z
zengyawen 已提交
14
| -------- | -------- | -------- |
E
ester.zhou 已提交
15 16 17
| width | number | Actual width of the rectangle on the canvas, in pixels.|
| height | number | Actual height of the rectangle on the canvas, in pixels.|
| data | Uint8ClampedArray | A one-dimensional array of color values. The values range from 0 to 255.|