[Xcb] xcb_shm_put_image

Peter Harris git at peter.is-a-geek.org
Tue Dec 27 18:23:08 PST 2011

On Tue, Dec 27, 2011 at 8:08 PM, Louis Mendoza wrote:
> I am trying to put an image onto a xcb_drawable_t. I am able to put it
> successfully with xcb_shm_put_image, but I want to be able to resize the
> image after I have put the image onto the drawable. Xvlib.h has a function
> XvShmPutImage that allows you to specify the destination width and height is
> there an equivalent using xcb libraries. Any help will be greatly
> appreciated.

xcb_xv_shm_put_image (from xcb/xv.h) is the direct replacement.

I might use xcb_render_set_picture_transform/xcb_render_composite
instead. It's more likely to be available everywhere, although it is
more work to use.

Peter Harris

More information about the Xcb mailing list