Changing the color of an image/pixbuf



Hello, 

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",
&error);
// convert GdkPixbuf to GtkWidget
widget = gtk_image_new_from_pixbuf (image);
gtk_widget_modify_bg (widget, GTK_STATE_NORMAL,
&my_color);

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 
http://mail.yahoo.com 



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