how to merge two XImage ?

Franck Juers fjuers at sii.fr
Tue Jan 8 01:11:58 PST 2008


hello,


I need to merge two XImage, one will be the background and the other will be
the foreground.
I need to set a color as 'transparent' for the foreground...

Right now, what I'm doing is a loop on the pixels,
for each pixel I check if the color is or not the "transparent" color and I
set the pixel of the final image with the right one...

I'm using XGetPixel and XPutPixel... the whole process seems a little
slow... images are 1280x1024x24,
is there a fastest way to do it ???


thank you,


Franck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20080108/4e0f1e25/attachment.html>


More information about the xorg mailing list