{"ScriptPreparationCode":"var canvas = document.createElement(\u0027canvas\u0027)\r\nvar context = canvas.getContext(\u00272d\u0027)\r\nvar bitmap\r\nvar img = new Image()\r\nimg.onload = async () =\u003E {\r\n canvas.width = img.width\r\n canvas.height = img.height\r\n context.drawImage(img, 0, 0)\r\n bitmap = await createImageBitmap(img)\r\n}\r\nimg.src = \u0027https://neurostof.nl/ns/letters.jpg\u0027\r\n\r\nvar c = document.createElement(\u0027canvas\u0027).getContext(\u00272d\u0027)\r\n\r\n\r\n// bitmap \u0026\u0026 c.drawImage(img, 250, 250, 250, 250, 0, 0, 1000, 1000)\r\n// bitmap \u0026\u0026 c.drawImage(canvas, 250, 250, 250, 250, 0, 0, 1000, 1000)\r\n// bitmap \u0026\u0026 c.drawImage(bitmap, 250, 250, 250, 250, 0, 0, 1000, 1000)\r\n\r\n","TestCases":[{"Name":"img","Code":"bitmap \u0026\u0026 c.drawImage(img, 250, 250, 250, 250, 0, 0, 1000, 1000)","IsDeferred":false},{"Name":"canvas","Code":"bitmap \u0026\u0026 c.drawImage(canvas, 250, 250, 250, 250, 0, 0, 1000, 1000)","IsDeferred":false},{"Name":"bitmap","Code":"bitmap \u0026\u0026 c.drawImage(bitmap, 250, 250, 250, 250, 0, 0, 1000, 1000)","IsDeferred":false}]}