[Webkit-unassigned] [Bug 202460] imageSmoothingEnabled = false works with stroke() and createPattern()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 17 04:32:25 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=202460

Ahmad Saleem <ahmad.saleem792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad.saleem792 at gmail.com

--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
Web-Spec:

If the original image data is a bitmap image, then the value painted at a point in the area of the repetitions is computed by filtering the original image data. When scaling up, if the imageSmoothingEnabled attribute is set to false, then the image must be rendered using nearest-neighbor interpolation. Otherwise, the user agent may use any filtering algorithm (for example bilinear interpolation or nearest-neighbor). User agents which support multiple filtering algorithms may use the value of the imageSmoothingQuality attribute to guide the choice of filtering algorithm. When such a filtering algorithm requires a pixel value from outside the original image data, it must instead use the value from wrapping the pixel's coordinates to the original image's dimensions. (That is, the filter uses 'repeat' behavior, regardless of the value of the pattern's repetition behavior.)

https://html.spec.whatwg.org/multipage/canvas.html#dom-canvaspattern-settransform (Bullet 2).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240517/6180205f/attachment.htm>


More information about the webkit-unassigned mailing list