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