show an image on RootWindow

Lucas lnf07 at inf.ufpr.br
Wed Jul 9 10:35:46 PDT 2008


Daniel Stone wrote:
> On Mon, Jul 07, 2008 at 02:25:45PM -0300, Lucas wrote:
>   
>> I'm programming with Xlib and cairo libs but I couldn't show an image on
>> RootWindow. how can I do this?
>>     
>
> Use XPutImage once you have the raw, decoded image.
>
> Cheers,
> Daniel
>   
I couldn't load an image with xlib, I tried to use XCreateImage to do it 
and XPutImage to show the image on screen, but it didn't work. Can you 
send me an example how to load an image and put it on screen?

thank you,

Lucas





More information about the xorg mailing list