W3C home > Mailing lists > Public > www-svg@w3.org > October 2009

Re: Enabling pixel grabbing in SVG just like Canvas

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 5 Oct 2009 09:55:42 +1300
Message-ID: <11e306600910041355j2e448ad5oeacd68d607789dbd@mail.gmail.com>
To: Jon Ferraiolo <jferrai@us.ibm.com>
Cc: www-svg@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:43 GMT