Re: Enabling pixel grabbing in SVG just like Canvas

On Mon, Oct 5, 2009 at 2:21 AM, Jon Ferraiolo <jferrai@us.ibm.com> wrote:

> Sounds intriguing to me. Maybe:
>
> <svg id="aaa" canvas="true">...</svg>
>

Sorry, that wasn't what I meant. What I meant was
var canvas = document.createElement("canvas");
canvas.drawImage(svgElement);
var data = canvas.getImageData(...);

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]

Received on Sunday, 4 October 2009 20:56:16 UTC