createImageBitmap

abstract fun createImageBitmap(
    image: dynamic,
    options: ImageBitmapOptions = definedExternally
): Promise<ImageBitmap>
(source)

Platform and version requirements: JS

abstract fun createImageBitmap(
    image: dynamic,
    sx: Int,
    sy: Int,
    sw: Int,
    sh: Int,
    options: ImageBitmapOptions = definedExternally
): Promise<ImageBitmap>
(source)

Platform and version requirements: JS