I've got a XImage retrieved by XShmGetImage function. How can I resize it? Is there any function in X11 libraries to perform this operation or I need to use external library?
A:
You have to create a new one with the new size. An external library can't help because you would need the X server itself to cooperate.
Havoc P
2010-05-04 17:38:27
OK, but I need a resized image. I don't need a blank image. Is there any way to resize an existing XImage?
Ajan
2010-06-22 09:58:10
If you mean change the pixel dimensions of the XImage, no, there is no way to do that.If you want to *scale* the image pixels, you would use XRender on the server side or something like the Cairo library on the client side. But you still will have to scale *to* a different image (or window or pixmap), since you can't resize an allocated XImage.
Havoc P
2010-07-23 01:50:47