- From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
- Date: Mon, 11 Mar 2013 14:31:06 +0100
- To: Robert Longson <longsonr@gmail.com>
- Cc: www-svg <www-svg@w3.org>
Received on Monday, 11 March 2013 13:31:56 UTC
Hi Robert, 2013/3/11 Robert Longson <longsonr@gmail.com> > Canvas drawImage will take an SVG image as input and you can convert > that using toDataURL > I didn't test this yet, but it should turn the SVG image into a rastered image, shouldn't it? If it's so, it would be useful to have a SVGSVGElement.toDataURL() to get an SVG image rather than a raster PNG. Actually it would be useful to have something like innerHTML on SVGElement. This would allow to get a string representation of any SVG DOM tree. Once we have such a string representation, it's trivial to produce a DATA URI. Best, -- Jeremie ............................. Web : http://jeremie.patonnier.net Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Monday, 11 March 2013 13:31:56 UTC