decode

suspend fun decode(options: ImageDecodeOptions = definedExternally): ImageDecodeResult(source)

The decode() method of the ImageDecoder interface enqueues a control message to decode the frame of an image.

MDN Reference