[pygtk] gtk.gdk.Pixbuf troubles and IRC

Tim Evans t.evans at aranz.com
Mon Jul 12 07:01:14 WST 2010


On 2010-07-11 4:19, Andrew wrote:
> Hi guys,
>
> In this example, a small gtk.gdk.Pixbuf is copied onto a larger pixbuf
> however where on the small pixbuf, there is transparency, this is
> converted to the gtk background colour.
>
> This means when the small pixbuf is copied 3 times and overlaid (as in
> the example), it looks incorrect. How do I make it so that the
> transparency in the small pixbuf is not replaced with the gtkbackground
> colour?

You need to use the 'composite' method rather than copy_area. I would 
provide example code, but the arguments are a bit complex and I'd be 
sure to get them wrong the first time and confuse you.

-- 
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/


More information about the pygtk mailing list