Re: Adding alpha channel to existing GdkPixbuf



>  How about gdk_pixbuf_add_alpha (GdkPixbuf *pixbuf,
>                                  GdkColor  *color)
>  
>  where color can be NULL and otherwise is the color to give an alpha of 0?
>  This is what 90% of people will be using this function for, and if they
>  are they have to iterate to set up the alpha anyway.

I think I'll use

GdkPixbuf *gdk_pixbuf_add_alpha (GdkPixbuf *pixbuf, 
				 gboolean substitute_color, 
				 guchar r, guchar g, guchar b);

Does that look fine?

  Federico



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