[cairo] applying alpha to a pattern

Theo Veenker T.J.G.Veenker at uu.nl
Fri Apr 16 05:47:56 PDT 2010


Hi,

Given a path that I need to stroke/fill with an arbitary pattern (solid color,
gradient or suface based), is it possible to stroke/fill it with alpha applied
to the pattern?  I guess I'm basically looking for cairo_{stroke|fill}_with_alpha()
or a procedure to achieve this efficiently.

Would it make sense to add something like cairo_{stroke|fill}_with_alpha() or
perhaps to add an alpha attribute to cairo_pattern_t? It would make fading
in/out graphics a lot easier I think.

Theo


More information about the cairo mailing list