{"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://1.bp.blogspot.com/-52MtzD0GfX0/WvP52CL1WjI/AAAAAAAAOVw/_OpK4JHeWK01d-7IiZ6vzojYGhXqLRXrACLcBGAs/s1600/EMxediL.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":"empty","Code":"bitmap","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},{"Name":"image","Code":"bitmap \u0026\u0026 c.drawImage(img, 250, 250, 250, 250, 0, 0, 1000, 1000)","IsDeferred":false}]}