[Xcb] Transparent Blt?

Matthew Allen fret at memecode.com
Wed Apr 22 19:23:30 PDT 2009


I have some 32-bit bitmaps (RGBA) that I want to blt to the screen... currently they show up fine (I've got the component order right) but the alpha channel is being ignored. Is there a way of blt'ing them and having the alpha channel used to composite the bitmap onto the screen?

The current code is using xcb_put_image, either to do the whole bitmap, or slice it up into scanlines if I only want to blt part of the source bitmap (gee it would be nice to have a way of blting a sub-image in one go).

Or should I be fetching the pixels under the destination area from the server first, comp'ing them myself and THEN blt'ing the result? (Sounds slow/lame over TCP etc)

Regards
--
Matthew Allen



More information about the Xcb mailing list