[cairo] Gradient mesh rasterizer

Andrea Canciani ranma42 at gmail.com
Tue Jul 14 05:12:34 PDT 2009


I'm working on extending cairo patterns to handle tensor product
shading patterns (type 7 in pdf reference).
Right now I can rasterize them, but my code isn't fast and clean as it
should, anyway Adrian Johnson suggested me to post it here as there
are performance expert reading this list.
In the comments I tried to point out known performance problems and
possible solutions.
The code should be linked to cairo and libm. Please pay attantion when
running it because it overwrites the file "mesh.png" in the current
directory with a rendering of a gradient mesh (hardcoded in the main
function).
Please notify me about any glitches you get.
Andrea Canciani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pattern.c
Type: application/octet-stream
Size: 11218 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20090714/30d2be8a/attachment-0001.obj 


More information about the cairo mailing list