Monday, January 21, 2013

Re: How to remove drawn elements on the canvas?

Followed your suggestion using front and drag/back-canvas. Works really nice.

If someone else is looking for this: you can dublicate a canvas just by:
desintationCanvas.getCtx().drawImage(sourceCanvas.getCanvasElement(), 0, 0);

Don't create an image from the source canvas to draw it on the destination, this will take too much time and resources!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate