How to upload 32 bit image to server-side pixmap

后端 未结 2 1207
误落风尘
误落风尘 2020-12-15 07:39

I\'m trying to create server-side RGBA pixmap from client side buffer. CreatePixmap & CreateImage work ok for 32 and 24 bit, but XPutImage result in Match Error returned

2条回答
  •  执笔经年
    2020-12-15 08:24

    Well, your code works for 32 bits images if you just create a GC passing a drawable on argument which is 32 bits. XCreateGC(dpy, drawable, 0, 0), where drawable can be a pixmap with 32 bits depth. It works perfect with me.

提交回复
热议问题