Get RGBA image

Suhail Doshi <[email protected]> Mon, 5 Aug 2019 17:51:02 -0700
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <CAKDSyZ4M6xSPdG0sxMA4ynh5nnMZsE8qHHjx3qFcabM15XH_FQ@mail.gmail.com>
Hi there,

I am trying out this code:
https://gist.github.com/Suhail/3ae62751857ff034a027adcacd350b69

One thing I noticed is that when I print the xcb image struct info I don't
get the image size I was expecting:

xcb_image_print() Printing a (1024,768) xcb_image_t of 1572864 bytes,
depth: 16, bpp: 16

Do you know why ximg->size wouldn't be 1024*768*3 (3 channel: RGB)? Or 4
channel?

1572864 seems like an odd size.

Suhail

--

Founder

_______________________________________________
Xcb mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xcb