Re: Alpha blending in Gtk



Dinesh Nadarajah wrote:
Hi All:

I guess this question comes up often but I could not find any such of
the mailing list. Does Gtk currently support Alpha blending? I am not
talking of shape masking for transparency but true alpha rendering. 

What are the current developer's thniking on how best to achieve this
in Gtk? A rough outline of the process to follow.

You are looking for GdkPixbuf.  With it you can do full-scale alpha blending.
Pixbuf's contents can be loaded from file or built at runtime.  Unfortunately,
pixbufs are quite slow, but this seems to be a problem with X, not with
GTK/GDK.

Paul



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