On Tue, Jul 7, 2009 at 2:09 AM, <span dir="ltr"><<a href="mailto:hansschmucker@gmail.com">hansschmucker@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
SVG Filters are a relatively easy spec, where the most important parts can be implemented in a matter of hours. </blockquote><div><br>Speaking as an implementor of SVG filters, I don't believe you :-).<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Am I the only one seeing any benefit for this or does anybody else think that would be hope for such a proposal?<br></blockquote><div> </div></div>I agree that we need a convenient way to use filters with canvas. But I would rather not create an entirely new object model.<br>
<br>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.<br clear="all">
<br>Rob<br>-- <br>"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]<br>