xcb_get_image(3)
xcb_get_image π (3) β XCB Requests
okay bestie, sit DOWN, because we're doing the xcb_get_image page together and it's gonna be a whole vibe. this is a libxcb manual page, section 3, from the XCB Requests fam. it's giving "grab pixels off the server", and honestly? iconic. π
β¨ NAME β¨
xcb_get_image β (the description here is literally blank in the original, no cap, we're all just vibing with the function name) π¦
β¨ SYNOPSIS β¨
πΈ Request function πΈ
xcb_get_image_cookie_t xcb_get_image(xcb_connection_t *conn,
uint8_t format, xcb_drawable_t drawable, int16_t x, int16_t y,
uint16_t width, uint16_t height, uint32_t plane_mask);
πΈ Reply datastructure πΈ
typedef struct xcb_get_image_reply_t {
uint8_t response_type;
uint8_t depth;
uint16_t sequence;
uint32_t length;
xcb_visualid_t visual;
uint8_t pad0[20];
} xcb_get_image_reply_t;
πΈ Reply function πΈ
xcb_get_image_reply_t *xcb_get_image_reply(xcb_connection_t *conn,
xcb_get_image_cookie_t cookie, xcb_generic_error_t **e);
πΈ Reply accessors πΈ
uint8_t *xcb_get_image_data(const xcb_get_image_request_t *reply);
int xcb_get_image_data_length(const xcb_get_image_reply_t *reply);
xcb_generic_iterator_t xcb_get_image_data_end(const
xcb_get_image_reply_t *reply);
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. the whole portal to the server, periodt. πformatβ bestie, it's one of these values:XCB_IMAGE_FORMAT_XY_BITMAPβTODO: NOT YET DOCUMENTED.πXCB_IMAGE_FORMAT_XY_PIXMAPβTODO: NOT YET DOCUMENTED.πXCB_IMAGE_FORMAT_Z_PIXMAPβTODO: NOT YET DOCUMENTED.πTODO: NOT YET DOCUMENTED.β (yes this one is just sitting there on its own, it's literally in the original, I don't make the rules, I just report them faithfully π)
drawableβTODO: NOT YET DOCUMENTED.πxβTODO: NOT YET DOCUMENTED.πyβTODO: NOT YET DOCUMENTED.πwidthβTODO: NOT YET DOCUMENTED.πheightβTODO: NOT YET DOCUMENTED.πplane_maskβTODO: NOT YET DOCUMENTED.π
β¨ REPLY FIELDS β¨
response_typeβ the type of this reply, and in this case it'sXCB_GET_IMAGE. this field is also present in thexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's literally the name tag at the party. π«Άsequenceβ the sequence number of the last request processed by the X11 server. the receipts, fr fr. π§Ύlengthβ the length of the reply, in words (and a word is4bytes, don't forget). πdepthβTODO: NOT YET DOCUMENTED.πvisualβTODO: NOT YET DOCUMENTED.π
β¨ DESCRIPTION β¨
so... the DESCRIPTION section on this page is empty. like, nothing. void. a blank canvas. it's giving "the vibes are mysterious and the docs are too". that's just how it ships, bestie, I'm not gonna make stuff up. π¦
β¨ RETURN VALUE β¨
it returns an xcb_get_image_cookie_t. πͺ and here's the thing β errors have to be handled when you call the reply function xcb_get_image_reply.
if you'd rather handle errors in the event loop instead, use xcb_get_image_unchecked. see xcb-requests(3) for the deets. π
β¨ ERRORS β¨
this request does never generate any errors. literally zero, none, not a single one, slay. π
β¨ SEE ALSO β¨
(nothing is listed here on this page β the section is just chillin' empty.)
β¨ AUTHOR β¨
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π§
and that's the whole page, bestie!! this one came from X Version 11, libxcb 1.17.0, and its date stamp is xcb_get_image(3) β so like, remember where you found it, mwah π β¨πΈπ
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms