Is it possible to draw another canvas?



  • I'm trying to double the canvas buffer. To do that, I wanted to use two canvass-- one I paint like a buffer, and then when everyone painted it, all his image is copied in the second.

    Actually, the copy question. How can a picture of one canvas paint another?



  • Everything, solved the problem:

    canvas_context2.drawImage(canvas1, 0, 0);
    

    Where? canvas_context2 - the context of the canvas where we draw canvas1 - The canvas from where we get the image.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2