javascript - Draw a canvas into another canvas not working -


I canvas another JavaScript canvas created through the canvas I am trying to attract But this is not working for me,

this is my code,

   

I think the problem was, when you attract the picture in the picture The canvas were trying, the image was not ready. So if you do this then it works perfectly:

   

And you can adjust the height and width of the dynamic canvas.

If you delete that window Open statement, correct it.

But there is a problem with canvas.toDataURL ()

when you try to canvas.toDataURL () A local file, it returns a security error (if you inspect it via Google Chrome) that means

  wasted error: SECURITY_ERR: DOM exception 18  

You can learn more about this error: (See if you are getting this error). Anyway, the root cause is solved, and a new problem is now completely: D. Otherwise better fortune!


Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -