[Gtk-sharp-list] Gtk.Image with transparency
Ratfish
aaron at radich.com
Wed Jan 20 00:53:32 EST 2010
OK, I'm lost. I've searched all the forums looking for what I would think
would be a common problem--using a Gtk.Image with an image that has
transparent areas. How can I do this. 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?
Aaron
try
{
imgCartIcon.Clear();
string sCartIconPathFilename = this.WorkingFolder + "Cart.jpg";
if (File.Exists(sCartIconPathFilename))
{
imgCartIcon.Pixbuf = new Gdk.Pixbuf(sCartIconPathFilename);
// need to handle the transparency
//imgCartIcon.Pixmap
//Gdk.Pixmap objPixmap;
}
}
catch (Exception ex)
{
}
--
View this message in context: http://old.nabble.com/Gtk.Image-with-transparency-tp27237130p27237130.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list