Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#menu-save-image").click(function () {
- var svg = document.getElementsByTagName('svg');
- var canvas = document.getElementById("test");
- canvg(canvas, svg);
- // or second way
- var c = document.getElementById('test');
- var ctx = c.getContext('2d');
- ctx.drawSvg(svg, 0, 0, 500, 500);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement