[Gtk-sharp-list] Gtk.Image with transparency

Chris Szikszoy chris at szikszoy.com
Wed Jan 20 03:12:11 EST 2010

Ratfish wrote:
> I think it has something to do with the Pixmap of the Gtk.Image, but I
> can't find any examples.  My image has a white color that represents the
> transparency.  Can anyone set me straight?

You can do this by specifying the transparent color of the pixbuf.

You can use Pixbuf.AddAlpha ().  This will return a new pixbuf, as specified
by the gdk docs here:

I don't think you need to mess with the .Pixmap of the image, just create a
new pixbuf from the file, add alpha, and assign the resulting pixbuf to
View this message in context: http://old.nabble.com/Gtk.Image-with-transparency-tp27237130p27238075.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list