ts-components-canvas-imagebitmap.md 580 字节
Newer Older
Z
zengyawen 已提交
1
# ImageBitmap
Z
zengyawen 已提交
2 3


4
> **NOTE**<br>
Z
zengyawen 已提交
5
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
Z
zengyawen 已提交
6 7


Z
zengyawen 已提交
8
**CanvasImageData** stores pixel data rendered on a canvas.
Z
zengyawen 已提交
9 10


Z
zengyawen 已提交
11
## Attributes
Z
zengyawen 已提交
12

13
| Name | Type | Description | 
Z
zengyawen 已提交
14
| -------- | -------- | -------- |
E
esterzhou 已提交
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 | &lt;Uint8ClampedArray&gt; | A one-dimensional array of color values. The values range from 0 to 255. |