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

E
ester.zhou 已提交
3
>  **NOTE**
4
>
E
ester.zhou 已提交
5
>  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 已提交
6 7


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


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

E
ester.zhou 已提交
13
| Name| Type| Description|
Z
zengyawen 已提交
14
| -------- | -------- | -------- |
E
ester.zhou 已提交
15 16 17 18 19 20 21 22 23 24 25 26
| width | number | Pixel width of the **ImageBitmap** object.|
| height | number | Pixel height of the **ImageBitmap** object.|


## Methods


### close

close()

Releases all graphics resources associated with this **ImageBitmap** object. This API is a void API.