- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Tue, 7 Jul 2009 08:54:08 +1200
On Tue, Jul 7, 2009 at 2:09 AM, <hansschmucker at gmail.com> wrote: > SVG Filters are a relatively easy spec, where the most important parts can > be implemented in a matter of hours. Speaking as an implementor of SVG filters, I don't believe you :-). Am I the only one seeing any benefit for this or does anybody else think > that would be hope for such a proposal? > I agree that we need a convenient way to use filters with canvas. But I would rather not create an entirely new object model. How about a drawImageWithFilter method that takes the same set of parameters as drawImage plus a reference to an SVG <filter> element? The image is used for Source/SourceAlpha and the size of the image establishes the object bounding box for filter and filter primitive units. Since drawImage can draw a canvas, this seems completely flexible. 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] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090707/3351b1b9/attachment.htm>
Received on Monday, 6 July 2009 13:54:08 UTC