[crossfire] Partial transparency
Alex Schultz
alex_sch at telus.net
Mon May 29 07:06:09 CDT 2006
Mark Wedel wrote:
> IIRC, gtk has no convenient way on handling the alpha channel (the
>inconvenient way would be for the program to figure it all on its own, figuring
>out the appropriate RGB values, and then drawing those point by point to the
>screen. This is also pretty CPU intensive). So I don't expect to add that
>support anytime soon (it would basically be a complete re-write of how images
>are handled).
>
Actually, gtk does support it through this api:
http://www.gtk.org/api/2.6/gdk/gdk-Drawing-Primitives.html#gdk-draw-pixbuf
However it isn't necessarily fast, but I believe on modern machines,
given how little crossfire redraws compared to most things, this cost
would not be that significant.
Alex Schultz
More information about the crossfire
mailing list