function createImageBitmap
createImageBitmap(image: ImageBitmapSource,options?: ImageBitmapOptions,): Promise<ImageBitmap>
Create a new [`ImageBitmap`](../././~/ImageBitmap) object from a given source.
image: ImageBitmapSource
The image to create an [`ImageBitmap`](../././~/ImageBitmap) from.
optional
options: ImageBitmapOptions
The options for creating the [`ImageBitmap`](../././~/ImageBitmap).
Promise<ImageBitmap>
createImageBitmap(): Promise<ImageBitmap>
Create a new [`ImageBitmap`](../././~/ImageBitmap) object from a given source, cropping
to the specified rectangle.
image: ImageBitmapSource
The image to create an [`ImageBitmap`](../././~/ImageBitmap) from.
The x coordinate of the top-left corner of the sub-rectangle from
which the [`ImageBitmap`](../././~/ImageBitmap) will be cropped.
The y coordinate of the top-left corner of the sub-rectangle from
which the [`ImageBitmap`](../././~/ImageBitmap) will be cropped.
The width of the sub-rectangle from which the
[`ImageBitmap`](../././~/ImageBitmap) will be cropped.
The height of the sub-rectangle from which the
[`ImageBitmap`](../././~/ImageBitmap) will be cropped.
optional
options: ImageBitmapOptions
The options for creating the [`ImageBitmap`](../././~/ImageBitmap).
Promise<ImageBitmap>