createImageBitmap

suspend external fun createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions? = definedExternally): ImageBitmap(source)

MDN Reference


suspend external fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions? = definedExternally): ImageBitmap(source)