Re: Adding alpha channel to existing GdkPixbuf

On Thu, 2 Dec 1999, Federico Mena Quintero wrote:
> Here is an untested function to promote a pixbuf to have alpha.  If
> people think this is generally useful, please tell me so that I can
> document it and put it in gdk-pixbuf.
> GdkPixbuf *
> gdk_pixbuf_add_alpha (GdkPixbuf *pixbuf)

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.


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