[cairo] gtk, cairo, surfaces and alpha

Donn donn.ingle at gmail.com
Sat May 23 04:46:52 PDT 2009


> tsurf = ctx.get_target() #get surface from context
> tsurf.write_to_png("screen.png")
This is great. One wrinkle: Is there any way to get alpha written out to the 
PNG? I would like transparent areas in the output -- in the window they would 
show as grey (the default window colour).

\d
-- 
home: http://otherwise.relics.co.za/
https://savannah.nongnu.org/projects/things/
https://savannah.nongnu.org/projects/fontypython/



More information about the cairo mailing list