Re: setting a transparent color on a pixbuf for Canvas layering



On Mon, 2008-06-30 at 17:52 -0400, zentara wrote:

How do I take the non-transparent zzrgbwb.png , load it with Gtk2, and
make green transparent without resorting to GD?

 Have you tried gdk_pixbuf_add_alpha ?
http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Pixbuf.html#pixbuf_pixbuf_add_al
http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-util.html#gdk-pixbuf-add-alpha

Quentin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]