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:
http://www.pygtk.org/docs/pygtk/class-gdkpixbuf.html#method-gdkpixbuf--add-alpha

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
imgCartIcon.Pixbuf.
-- 
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.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to