[cairo] How to flatten several data surfaces with transparency

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Mon Nov 5 07:52:28 PST 2012


Hi,

Le lundi 05 novembre 2012 à 16:24 +0100, Steve Moreau a écrit :
> I was playing with cairo to flatten several layers with transparency.

I don't know if it can solve your issue, but if you alter surface data
by accessing directly the memory buffer, you have to use
cairo_surface_mark_dirty. If you forget this call, cairo may discard
what you have done.

	Emmanuel.



More information about the cairo mailing list