Created attachment 17888 [details] Image which illustrates the bleeding The billinear (or better) filters provided by XRender currently interpolate pixels which are on the source-border with transparent (when RepeatNone is set). This results for large scale factors in serioud bleeding. The image attached is a 2x2 image, scaled with 100/10. Therefor its not possible to Composite with billinear interpolation without blurry edges. Cairo-1.6.4 introduced support for RepeatPad on image-surfaces (not supported on x-surfaces): > This mode allows applications to use `cairo_rectangle` and > `cairo_fill` to draw scaled images with high-quality bilinear filtering > for the internal of the image, but without any objectionably blurry > edges, (as would happen with the default `EXTEND_NONE` and cairo_paint). They currently implement RepeatPad, and then filter billinear. However its often required to just draw a single image rotated, it imposes quite a lot of overhead to generate a mask only to preserve the rotated rectangular geometry the image has. Would it be possible via XRenderSetPictureFilter's params-field to not interpolate out of the src-bounds?
Created attachment 17889 [details] small program which illustrates the problem
ok, forget about that feature request. However RepeatPad would be nice.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.