Re: how to display a XImage with 16bits depth in a drawable with a depth of 24bits ?

2009-03-03 Thread aivils
Citēju hd h.dupon...@laposte.net: Glynn Clements a écrit : hd wrote: I my app, I receive a raw image in 16 bits depth. My defaut visual have a depth of 24 bits (and all other Visual have 24 or 32bits depth on my X server). To display the bitmap I try to create an XImage with

Re: how to display a XImage with 16bits depth in a drawable with a depth of 24bits ?

2009-03-02 Thread hd
Glynn Clements a écrit : hd wrote: I my app, I receive a raw image in 16 bits depth. My defaut visual have a depth of 24 bits (and all other Visual have 24 or 32bits depth on my X server). To display the bitmap I try to create an XImage with XCreateImage() and display it with

Re: how to display a XImage with 16bits depth in a drawable with a depth of 24bits ?

2009-02-27 Thread Glynn Clements
hd wrote: I my app, I receive a raw image in 16 bits depth. My defaut visual have a depth of 24 bits (and all other Visual have 24 or 32bits depth on my X server). To display the bitmap I try to create an XImage with XCreateImage() and display it with XPutImage(). But X displays a bad