[cairo] Help with PDF output from painting surfaces

Cope, Phil (GE Energy) phil1.cope at ge.com
Mon Nov 14 08:01:46 PST 2011

Hello, I have a problem with PDF output. I have a system that can
potentially render a huge image (e.g. a satellite photography) It does
this by tiling the image and sending the tiles to Cairo which are then
painted as source.


When outputting to PDF there is an issue illustrated by the screengrabs
of Adobe Reader displaying the Cairo output (see links below).  The
first is fine, but the second, which is the same data (approximately)
rotated through 45deg. The third is a zoomed in area of the previous.
The obvious problem is what looks like antialiasing on the edge of the
tiles which is manifesting itself as diagonal lines on the boundaries of
the tiles. 


I set 


cairo_set_antialias(ctxt, CAIRO_ANTIALIAS_NONE); 


while drawing these tiles, I also tried 


cairo_set_operator(ctxt, CAIRO_OPERATOR_SOURCE); 


(rather than _OVER) but this had bizarre and unwanted effects on the
screen drawing. 


Any hints as to how I can remove these artefacts would be much
appreciated, I'm using 1.10.2 





Rotated at 45 deg:



Above PDF zoomed in:






Phil Cope

Senior Software Engineer (GE Energy: SSG)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20111114/32ce15bb/attachment.htm>

More information about the cairo mailing list