Class “ImageBitmap”
Represents an in-memory Image. Unlike ImageData it is immutable, but can be created from a number of sources via createImageBitmap.
Constructor | private |
Singleton | No |
Namespace | tabris |
Direct subclasses | None |
JSX support | No |
Methods
close()
Disposes the resources associated with this ImageBitmap. Should be called once the image is no longer needed to free up memory.
Returns void
Static Methods
createImageBitmap(image)
Creates a promise that resolves to a new instance of ImageBitmap. Also available in global scope.
Parameter | Type | Optional | Description |
---|---|---|---|
image | Blob | ImageData | ImageBitmap |
No | The data source to create an ImageBitmap instance from. |
Returns Promise<ImageBitmap>
Properties
height
Native image height in pixel
Type | number |
Settable | No |
Change events | No |
This property can only be set via constructor. Once set, it cannot change anymore.
width
Native image width in pixel
Type | number |
Settable | No |
Change events | No |
This property can only be set via constructor. Once set, it cannot change anymore.