Image surface problem when showing portion of artwork?

Ray at Daylon rayg at daylongraphics.com
Sun Sep 1 21:18:07 UTC 2024


Hi everyone,

There seems to be a rendering issue in Cairo 1.18.0 where drawing paths 
in an image surface that shows only a subset of the artwork causes some 
paths to fill incorrectly.

The attached file tiger_okay.jpg shows a portion of the standard Tiger 
image rendered on a 512 x 512 px image surface, and everything's fine.

The file tiger_error.jpg, however, is a closer zoom also 512 x 512 px in 
size but the dark orange paths below and to the left of the eye cover 
more area than normal.

No clipping is done either by the app or by telling Cairo to set a clip 
rectangle; an image surface is created and all the paths are drawn. I 
imagine there is a default clip rectangle matching the surface extent 
that Cairo initially defines.

There are other problems with stroked paths in other areas at closer 
zooms, but I'll treat that as a separate issue.

Ray Gardener
Daylon Graphics Ltd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tiger_okay.jpg
Type: image/jpeg
Size: 39379 bytes
Desc: not available
URL: <https://lists.cairographics.org/archives/cairo/attachments/20240901/004a8b65/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tiger_error.jpg
Type: image/jpeg
Size: 41676 bytes
Desc: not available
URL: <https://lists.cairographics.org/archives/cairo/attachments/20240901/004a8b65/attachment-0003.jpg>


More information about the cairo mailing list