DrawDecodeImageBitmap CallableDrawDecodeImageBitmap(blob): Promise<ImageBitmap>Decode image bytes into an ImageBitmap. createImageBitmap cannot decode SVG, and mods pass SVG icons in as data: URLs. Those are drawn to a canvas first, at the SVG's own pixel size, and the canvas is what becomes the bitmap.Parametersblob: BlobReturns Promise<ImageBitmap>
Decode image bytes into an ImageBitmap.
createImageBitmapcannot decode SVG, and mods pass SVG icons in asdata:URLs. Those are drawn to a canvas first, at the SVG's own pixel size, and the canvas is what becomes the bitmap.