Re: Changing the color of an image/pixbuf

Does the .gif file have transparency? If not, try making the
"background" areas of the image transparent, and see what happens.


On 6/22/05, Lola Smith <lola_smith55 yahoo com> wrote:

I have a pixbuf in a file which I have to change the
color of everytime I use it. Is it even possible to
change the background color of an image? I tried this:

image  = gdk_pixbuf_new_from_file("picture.gif",
// convert GdkPixbuf to GtkWidget
widget = gtk_image_new_from_pixbuf (image);
gtk_widget_modify_bg (widget, GTK_STATE_NORMAL,

But this doesn't work :-((

Can someone help?
Thanks a lot !!

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

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