{"ScriptPreparationCode":"var imagebase = \u0022data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIBAMAAABfdrOtAAAABGdBTUEAALGPC/xhBQAAADBQTFRFgwD/1hCepugQI098S1QpNiMbkGVIsIpry6eMcUQo/gAAAP8B/38AAAD//wD///8BJIDoogAAC9hJREFUeNrtmc9rHMkVx/0P7CEia9aXCJnAGvbgg0lgET5t95hGx\u002B2W3eQUM6pW5SJYdqtb5BA2ZNWdUyDuLqV2F0LAMXiYo29zzzrQ4IMhF2PwXAw5rME\u002BhNw6772qbo2k6VH/yDT5obJHtmTTn3m/vu/VmytvGp9XL7ueK5eQNUHeXFpyCfkvh7x3Cfn/hHzfkfF8CMj2AJDnswEgswEg2wNAns/aQV51NGTtkBezASCzASDbA0Cez1pD3nQ0ZL2QF7P1Q4yz1gvZHgBSGbJOyHY3yHtdor5OyImz1gjZHgCyaMjaINsDQE4ZsibIaUY7yPednLUmyBlD1gPZHgDyYrZ\u002ByFlntYS86uSsdUDOG7IGyPYAkBezvpDnn96i8/HtFs5qB5krV5nz4Ba8bjdzVjvI\u002B5bjqIXDb718\u002BbG6faEhLSBzmRLCUallK2W5iqUv/yZVem707QyZs7FlqVNHMo5fF932oh/kfcvi\u002BtFcKvxFfweXwU/T2yud1Rjy2nUUOUtKBr8ZPltxyRX9NF0V9caQObcIwZQMBCAYk4iQ0tjzYKUhDSGvyzgwFgKEMJxDTMAUCSnH2E/57VpDmkGu8hJRQshjEk0rY/Ptg1pGI8hc567k\u002BPiIIMgxZJXiF0i9nT6QOafHcDLEWEKHL\u002BRzCpRPekBepzq\u002BmFWMBQQxpNOFU2tLA8jfKYkgnSoTRBCEAjm6XDJ8oay5nSFz/TAmDSEARhhGYRhWpmR\u002BChTXSbtC5hgLqTPLUAQwkpiCo8PiW1nqe0CyOkHmjEMVYCJJskHHHhhJEp5QMuWnXpY5dVFZDbmKDpEoIpIejo\u002BFcITAiKIoFFxbkjlOlvlepmocdmV1Xmm3U0ggEB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B2jI6QfADIdAhIPgBkOgQkHwCS/2dCnl1acgm5hFxCLiH/LvH634H8C2Mi15WzTge5AAAAAElFTkSuQmCC\u0022;\r\n\r\nvar image = document.createElement(\u0027img\u0027);\r\nimage.src = imagebase;\r\nvar canvas = document.createElement(\u0027canvas\u0027);\r\ncanvas.width = 200;\r\ncanvas.height = 200;\r\nvar ctx = canvas.getContext(\u00272d\u0027);\r\nvar imageloaded = false;\r\nimage.onload = function() {\r\n ctx.drawImage(image, 0, 0);\r\n imageloaded = true;\r\n};\r\n\r\nvar drawcanvas = document.getElementById(\u0027target\u0027);\r\nvar drawctx = drawcanvas.getContext(\u00272d\u0027);","TestCases":[{"Name":"copy image section","Code":"drawctx.drawImage(image, 10, 10, 120, 120, 5, 5, 120, 120);","IsDeferred":false},{"Name":"copy canvas section","Code":"drawctx.drawImage(canvas, 10, 10, 120, 120, 5, 5, 120, 120);","IsDeferred":false}]}