[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Changing the color of an image/pixbuf
- From: Christopher Anderson <sidewinder asu gmail com>
- To: Lola Smith <lola_smith55 yahoo com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Changing the color of an image/pixbuf
- Date: Thu, 23 Jun 2005 11:41:17 -0700
Does the .gif file have transparency? If not, try making the
"background" areas of the image transparent, and see what happens.
Chris
On 6/22/05, Lola Smith <lola_smith55 yahoo com> wrote:
> 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
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]