Changing the color of an image/pixbuf


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 

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