hi,
i'm a newbie of X programming; so excuse me if i'm not using the right terminology.
I'm making a program that display frames of
a proprietary format file on a X-window.
that frames has an alpha channel and i would like to display the frames 
as they are ( so with trasparent background)

Currently my program work like that:

parse_proprietary_file();
while (!EOF(proprietary_file)){
        get_frame();
        convert_frame_to_Xpm();
        XpmCreatePixmapFromData(... converted_frame, pixmap, mask_pixmap);
        XsetClipMask(....mask_pixmap);
        XCopyArea(...,pixmap, window_of_the_program, ....);
        sleep(some_seconds);
        /* to Clear the window */
        XClearArea(display,window_of_the_program,.....);
}

this way of coding is not so fast ( i'm displaying 18 frames per second and
they are 320 * 320 ) and it doesn't work as i like (i would like to have an
"invisible" Window on which display the frames, so if the frames is a dog
running with no background, the program display only the dog running and on
the background you can see the desktop, or a window) . 

i don't care about ppl using Xfree 3.x i would like to make it fast for X 4. 

Someone suggest me to use Xrender, and i start to read all the docs from 
www.eax.com/render and from KeithP Hp .

Now i'm rather confused on how to start to recode the program .. i took a look
to sample codes of eax.com and it seem Xrender has a lots of implementations
with fonts ( for antialiasing) but none about "Playing with images with alpha
channel".

any hints, suggestion doc, book to read? 
i'm stalled, i still do not understand how to use
Xrender for my app.

thanks 
Samuele 

-- 
Samuele Tonon  <[EMAIL PROTECTED]>   http://www.linuxasylum.net/~samu/
                Acid -- better living through chemistry.
                               Timothy Leary

_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render

Reply via email to