meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Replace original image with new image with dataURL attribute as opposed to canvas element. #107

Open sntx opened 11 years ago

sntx commented 11 years ago

Is there a way to do this out of the box? I found this.toImage() method, but it just returns the image, it doesn't replace the canvas element with it. It won't be too hard to replace it manually but I'm just wondering if CamanJS already provides a way to do it. Thanks.