Draw a Blob onto a canvas element, replacing its current content. Decode errors are logged to the console and leave the canvas unchanged.
Canvas element or its DOM id.
Image blob to draw (PNG, JPEG, or any format supported by createImageBitmap).
createImageBitmap
Promise that resolves when drawing is complete or silently on failure.
Draw a Blob onto a canvas element, replacing its current content. Decode errors are logged to the console and leave the canvas unchanged.