- From: Joebert <mr.joebert@gmail.com>
- Date: Mon, 5 Dec 2005 19:19:03 -0500
6.1.1. The 2D context interface CanvasRenderingContext2D CanvasPattern createPattern(in HTMLImageElement image, DOMString repetition); CanvasPattern createPattern(in HTMLCanvasElement image, DOMString repetition); I would like to see optional source x (sx), source y (sy), source width (sw), source height (sh) arguments added to the "createPattern" method. Example: CanvasPattern createPattern(in HTMLImageElement image, DOMString repetition, in float sx, in float sy, in float sw, in float sh); As of now, if a pattern needs to be created from a section of an image consisting of multiple pattern sections, one needs to create a temp/clip canvas where "drawImage" can extract the section, then pass the temp/clip canvas to the "createPattern" method. The optional arguments (sx, sy, sw, sh) would streamline pattern creations of this nature. -- Patience. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20051205/81bac7d9/attachment.htm>
Received on Monday, 5 December 2005 16:19:03 UTC