Skip to content

Commit

Permalink
svg open 2010 presentation is over, yay!
Browse files Browse the repository at this point in the history
  • Loading branch information
sampumon committed Aug 31, 2010
1 parent d32b92a commit 7e71ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README
@@ -1,14 +1,14 @@
The missing SVG.toDataURL method for your SVG elements.
The missing SVG.toDataURL() method for your SVG elements.

Requires canvg for PNG exporting: http://code.google.com/p/canvg/.

Compatible with ~latest versions of Firefox, Safari, Chrome, Opera and Internet Explorer 9

0) install canvg:
0) Install canvg:
<script type="text/javascript" src="rgbcolor.js"></script>
<script type="text/javascript" src="canvg.js"></script>
1) <script type="text/javascript" src="svg_todataurl.js"></script>
2) var pngDataURL = mySVGelement.toDataURL("image/png");
myImg.setAttribute("src", pngDataURL);
2.5) myImg.setAttribute("src", pngDataURL);

^_____^

0 comments on commit 7e71ef5

Please sign in to comment.